Function for set default setting for each batch.

1 call to SpambotUserspamForm::defaultBatchBuilderSettings()
SpambotUserspamForm::actionUserContent dans src/Form/SpambotUserspamForm.php
Function apply selected action to content.

Fichier

src/Form/SpambotUserspamForm.php, line 605

Classe

SpambotUserspamForm
Settings form to save the configuration for Spambot.

Namespace

Drupal\spambot\Form

Code

public function defaultBatchBuilderSettings() {
    $this->batchBuilder
        ->setTitle($this->t('Processing'))
        ->setInitMessage($this->t('Initializing.'))
        ->setProgressMessage($this->t('Completed @current of @total.'))
        ->setErrorMessage($this->t('An error has occurred.'));
    $this->batchBuilder
        ->setFile(\Drupal::service('extension.list.module')->getPath('spambot') . '/src/Form/SpambotUserspamForm.php');
}