You are here

public function TotalControlDashboard::__construct in Total Control Admin Dashboard 8.2

Same name and namespace in other branches
  1. 3.0.x src/Plugin/Block/TotalControlDashboard.php \Drupal\total_control\Plugin\Block\TotalControlDashboard::__construct()

Creates a CreateContent block instance.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/TotalControlDashboard.php, line 41

Class

TotalControlDashboard
Provides a 'Total Control Dashboard block'.

Namespace

Drupal\total_control\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
}