You are here

public function AdministerMenus::__construct in Total Control Admin Dashboard 3.0.x

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

Creates an AdministerMenus 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.

Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/AdministerMenus.php, line 75

Class

AdministerMenus
Provides a 'Administer Menus'.

Namespace

Drupal\total_control\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, RendererInterface $renderer, RedirectDestinationInterface $redirect_destination, AccountInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
  $this->renderer = $renderer;
  $this->redirectDestination = $redirect_destination;
  $this->currentUser = $current_user;
}