function LocalActionDefault::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::__construct()
  2. 10 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::__construct()
  3. 11.x 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;
}

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