You are here

public function AutologoutWarningBlock::__construct in Automated Logout 8

Constructs an AutologoutWarningBlock object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

string $plugin_definition: The plugin implementation definition.

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

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Config\Config $autologout_settings: The config object for 'autologout.settings'.

\Drupal\autologout\AutologoutManager $manager: The AutologoutManager service.

\Drupal\Core\Form\FormBuilder $builder: The FormBuilder service.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/AutologoutWarningBlock.php, line 80

Class

AutologoutWarningBlock
Provides an 'Automated Logout info' block.

Namespace

Drupal\autologout\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, DateFormatterInterface $date_formatter, Config $autologout_settings, AutologoutManager $manager, FormBuilder $builder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
  $this->dateFormatter = $date_formatter;
  $this->autoLogoutSettings = $autologout_settings;
  $this->manager = $manager;
  $this->builder = $builder;
}