Constructs a SpambotUserspamForm object.

Paramètres

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Database\Connection $connection: Constructs a Connection object.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Provides an interface for an entity type and its metadata.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Interface for classes that manage a set of enabled modules.

\Drupal\Core\Messenger\MessengerInterface $messenger: Stores runtime messages sent out to individual users on the page.

Fichier

src/Form/SpambotUserspamForm.php, line 85

Classe

SpambotUserspamForm
Settings form to save the configuration for Spambot.

Namespace

Drupal\spambot\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler, MessengerInterface $messenger) {
    $this->config = $config_factory->get('spambot.settings');
    $this->connection = $connection;
    $this->entityTypeManager = $entityTypeManager;
    $this->moduleHandler = $moduleHandler;
    $this->messenger = $messenger;
    $this->batchBuilder = new BatchBuilder();
}