You are here

public function NotificationsWidgetSettingsForm::__construct in Notifications widget 8

Constructs an AutologoutSettingsForm object.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module manager service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The module entity manager service.

Overrides ConfigFormBase::__construct

File

src/Form/NotificationsWidgetSettingsForm.php, line 42

Class

NotificationsWidgetSettingsForm
Provides settings for Notification widget module.

Namespace

Drupal\notifications_widget\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_manager) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_manager;
}