function TestLocalActionWithConfig::__construct

Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalActionWithConfig::__construct()
  2. 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalActionWithConfig::__construct()
  3. 11.x 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\LocalAction

Code

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;
}

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