function ToolbarHandler::create

Same name in other branches
  1. 4.x src/ToolbarHandler.php \Drupal\devel\ToolbarHandler::create()

Overrides ContainerInjectionInterface::create

File

src/ToolbarHandler.php, line 26

Class

ToolbarHandler
Toolbar integration handler.

Namespace

Drupal\devel

Code

public static function create(ContainerInterface $container) : self {
    $instance = new self();
    $instance->account = $container->get('current_user');
    $instance->stringTranslation = $container->get('string_translation');
    return $instance;
}