public function SettingsFormWarning::__construct in General Data Protection Regulation Compliance 8
SettingsFormWarning constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory service.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Module handler service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity Manager service.
\Drupal\Core\Entity\EntityTypeBundleInfo $entityTypeManager: Entity Manager service.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SettingsFormWarning.php, line 47
Class
- SettingsFormWarning
- Implements the form controller.
Namespace
Drupal\gdpr_compliance\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $moduleHandler, EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfo $entityTypeBundle) {
$this->moduleHandler = $moduleHandler;
$this->entityTypeManager = $entityTypeManager;
$this->entityTypeBundle = $entityTypeBundle;
$this->entityTypes = [
'contact_message' => [
'name' => 'Contact',
'module' => 'contact',
],
'node' => [
'name' => 'Node',
'module' => 'node',
],
'webform' => [
'name' => 'Webform',
'module' => 'webform',
],
];
parent::__construct($config_factory);
}