function DevelLocalTask::create

Same name in other branches
  1. 5.x src/Plugin/Derivative/DevelLocalTask.php \Drupal\devel\Plugin\Derivative\DevelLocalTask::create()

Overrides ContainerDeriverInterface::create

File

src/Plugin/Derivative/DevelLocalTask.php, line 45

Class

DevelLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\devel\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
    return new static($container->get('entity_type.manager'), $container->get('string_translation'));
}