function LocalActionDefault::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::__construct()
- 8.9.x core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::__construct()
- 10 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
3 calls to LocalActionDefault::__construct()
- BlockContentAddLocalAction::__construct in core/
modules/ block_content/ src/ Plugin/ Menu/ LocalAction/ BlockContentAddLocalAction.php - Constructs a BlockContentAddLocalAction object.
- 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.
3 methods override LocalActionDefault::__construct()
- BlockContentAddLocalAction::__construct in core/
modules/ block_content/ src/ Plugin/ Menu/ LocalAction/ BlockContentAddLocalAction.php - Constructs a BlockContentAddLocalAction object.
- 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\MenuCode
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.