function LocalActionsBlock::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock::__construct()
  2. 10 core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock::__construct()
  3. 9 core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock::__construct()
  4. 8.9.x core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock::__construct()

Creates a LocalActionsBlock 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\Menu\LocalActionManagerInterface $localActionManager: A local action manager.

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The route match.

Overrides BlockPluginTrait::__construct

File

core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php, line 35

Class

LocalActionsBlock
Provides a block to display the local actions.

Namespace

Drupal\Core\Menu\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, protected LocalActionManagerInterface $localActionManager, protected RouteMatchInterface $routeMatch) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.