You are here

public function ContentStateStatistic::__construct in Content Planner 8

Constructs a new UserLoginBlock instance.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides DashboardBlockBase::__construct

File

modules/content_kanban/src/Plugin/DashboardBlock/ContentStateStatistic.php, line 38

Class

ContentStateStatistic
Provides a Dashboard block for Content Planner Dashboard.

Namespace

Drupal\content_kanban\Plugin\DashboardBlock

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, MessengerInterface $messenger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
  $this
    ->setMessenger($messenger);
  $this->kanbanStatisticService = \Drupal::service('content_kanban.kanban_statistic_service');
}