function TestLocalActionWithConfig::create

Same name in other branches
  1. 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalActionWithConfig::create()
  2. 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalActionWithConfig::create()
  3. 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalActionWithConfig::create()

Overrides LocalActionDefault::create

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php, line 53

Class

TestLocalActionWithConfig
Defines a test local action plugin class.

Namespace

Drupal\menu_test\Plugin\Menu\LocalAction

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('router.route_provider'), $container->get('config.factory')
        ->get('menu_test.links.action'));
}

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