You are here

public function LocalActionDefault::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::__construct()

Constructs a LocalActionDefault object.

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\Routing\RouteProviderInterface $route_provider: The route provider to load routes by name.

Overrides PluginBase::__construct

2 calls to LocalActionDefault::__construct()
MenuLinkAdd::__construct in core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php
Constructs a MenuLinkAdd object.
TestLocalActionWithConfig::__construct in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php
Constructs a TestLocalActionWithConfig object.
2 methods override LocalActionDefault::__construct()
MenuLinkAdd::__construct in core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php
Constructs a MenuLinkAdd object.
TestLocalActionWithConfig::__construct in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php
Constructs a TestLocalActionWithConfig object.

File

core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 41

Class

LocalActionDefault
Provides a default implementation for local action plugins.

Namespace

Drupal\Core\Menu

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->routeProvider = $route_provider;
}