function ToolbarHandler::create
Same name in other branches
- 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\develCode
public static function create(ContainerInterface $container) : self {
$instance = new self();
$instance->account = $container->get('current_user');
$instance->stringTranslation = $container->get('string_translation');
return $instance;
}