You are here

public function DigestInterval::__construct in Message Digest 8

Construct the interval action.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\flag\FlagServiceInterface $flag_service: The flag service.

Overrides PluginBase::__construct

File

message_digest_ui/src/Plugin/Action/DigestInterval.php, line 55

Class

DigestInterval
Action to change digest interval.

Namespace

Drupal\message_digest_ui\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FlagServiceInterface $flag_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->flagService = $flag_service;
  $this->flag = $this->flagService
    ->getFlagById($configuration['flag_id']);
  $this->intervalPluginId = $configuration['value'];
}