You are here

public function CommentNotifySettings::__construct in Comment Notify 8

CommentNotifySettings constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\Entity\EntityFieldManager $field_manager: The entity field manager.

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

Overrides ConfigFormBase::__construct

File

src/Form/CommentNotifySettings.php, line 75

Class

CommentNotifySettings
Settings form for the Comment Notify module.

Namespace

Drupal\comment_notify\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityFieldManager $field_manager, ModuleHandlerInterface $module_handler, MessengerInterface $messenger) {
  parent::__construct($config_factory);
  $this->fieldManager = $field_manager;
  $this->moduleHandler = $module_handler;
  $this->messenger = $messenger;
}