public function LocalActionsBlock::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 $local_action_manager: A local action manager.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
Overrides BlockBase::__construct
File
- core/
lib/ Drupal/ Core/ Menu/ Plugin/ Block/ LocalActionsBlock.php, line 55 - Contains \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock.
Class
- LocalActionsBlock
- Provides a block to display the local actions.
Namespace
Drupal\Core\Menu\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LocalActionManagerInterface $local_action_manager, RouteMatchInterface $route_match) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->localActionManager = $local_action_manager;
$this->routeMatch = $route_match;
}