You are here

public function SpambotUserspamForm::defaultBatchBuilderSettings in Spambot 8

Function for set default setting for each batch.

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

File

src/Form/SpambotUserspamForm.php, line 605

Class

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_get_path('module', 'spambot') . '/src/Form/SpambotUserspamForm.php');
}