public static function MenuTokenSupportedTokensController::create in Menu Token 8
Same name and namespace in other branches
- 9.1.x src/Controller/MenuTokenSupportedTokensController.php \Drupal\menu_token\Controller\MenuTokenSupportedTokensController::create()
When this subscriber is created, it will get the services and store them.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: Dependency injection container.
Return value
static Container.
Overrides ControllerBase::create
File
- src/
Controller/ MenuTokenSupportedTokensController.php, line 90
Class
- MenuTokenSupportedTokensController
- Class MenuTokenSupportedTokensController.
Namespace
Drupal\menu_token\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container
->get('config.factory'), $container
->get('token.tree_builder'), $container
->get('renderer'));
}