You are here

public static function LocalTasks::create in RNG - Events and Registrations 8.2

Same name in this branch
  1. 8.2 src/Plugin/Derivative/LocalTasks.php \Drupal\rng\Plugin\Derivative\LocalTasks::create()
  2. 8.2 rng_debug/src/Plugin/Derivative/LocalTasks.php \Drupal\rng_debug\Plugin\Derivative\LocalTasks::create()
Same name and namespace in other branches
  1. 8 rng_debug/src/Plugin/Derivative/LocalTasks.php \Drupal\rng_debug\Plugin\Derivative\LocalTasks::create()
  2. 3.x rng_debug/src/Plugin/Derivative/LocalTasks.php \Drupal\rng_debug\Plugin\Derivative\LocalTasks::create()

Creates a new class instance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.

string $base_plugin_id: The base plugin ID for the plugin ID.

Return value

static Returns an instance of this fetcher.

Overrides ContainerDeriverInterface::create

File

rng_debug/src/Plugin/Derivative/LocalTasks.php, line 39

Class

LocalTasks
Provides dynamic tasks.

Namespace

Drupal\rng_debug\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($container
    ->get('router.route_provider'), $container
    ->get('rng.event_manager'));
}