public function TestLocalActionWithConfig::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalActionWithConfig::__construct()
Constructs a TestLocalActionWithConfig 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.
\Drupal\Core\Config\Config $config: The 'menu_test.links.action' config.
Overrides LocalActionDefault::__construct
File
- core/
modules/ system/ tests/ modules/ menu_test/ src/ Plugin/ Menu/ LocalAction/ TestLocalActionWithConfig.php, line 42
Class
- TestLocalActionWithConfig
- Defines a test local action plugin class.
Namespace
Drupal\menu_test\Plugin\Menu\LocalActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider, Config $config) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_provider);
$this->config = $config;
}