public function SpambotSettingsForm::__construct in Spambot 8
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\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\State\StateInterface $state: Provides an interface for state.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SpambotSettingsForm.php, line 57
Class
- SpambotSettingsForm
- Settings form to save the configuration for Spambot.
Namespace
Drupal\spambot\FormCode
public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, EntityTypeManagerInterface $entityTypeManager, StateInterface $state) {
parent::__construct($config_factory);
$this->connection = $connection;
$this->entityTypeManager = $entityTypeManager;
$this->state = $state;
}