public function LocalActionDefault::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::__construct()
- 9 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.
1 method overrides LocalActionDefault::__construct()
- 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;
}