You are here

public function DashboardBlockBase::__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 PluginBase::__construct

2 calls to DashboardBlockBase::__construct()
ContentStateStatistic::__construct in modules/content_kanban/src/Plugin/DashboardBlock/ContentStateStatistic.php
Constructs a new UserLoginBlock instance.
RecentKanbanActivities::__construct in modules/content_kanban/src/Plugin/DashboardBlock/RecentKanbanActivities.php
Constructs a new UserLoginBlock instance.
2 methods override DashboardBlockBase::__construct()
ContentStateStatistic::__construct in modules/content_kanban/src/Plugin/DashboardBlock/ContentStateStatistic.php
Constructs a new UserLoginBlock instance.
RecentKanbanActivities::__construct in modules/content_kanban/src/Plugin/DashboardBlock/RecentKanbanActivities.php
Constructs a new UserLoginBlock instance.

File

src/DashboardBlockBase.php, line 43

Class

DashboardBlockBase
Implements DashboardBlockBase.

Namespace

Drupal\content_planner

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
}