You are here

public static function LocalActionDefault::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::create()
  2. 9 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::create()
1 method overrides LocalActionDefault::create()
TestLocalActionWithConfig::create in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php
Creates an instance of the plugin.

File

core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 50

Class

LocalActionDefault
Provides a default implementation for local action plugins.

Namespace

Drupal\Core\Menu

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