public function TwigExtenderService::__construct in Twig Extender 8.2
Same name and namespace in other branches
- 8.4 src/TwigExtenderService.php \Drupal\twig_extender\TwigExtenderService::__construct()
- 8 src/TwigExtenderService.php \Drupal\twig_extender\TwigExtenderService::__construct()
- 8.3 src/TwigExtenderService.php \Drupal\twig_extender\TwigExtenderService::__construct()
- 4.x src/TwigExtenderService.php \Drupal\twig_extender\TwigExtenderService::__construct()
Construtor.
Overrides TwigExtension::__construct
File
- src/
TwigExtenderService.php, line 20
Class
- TwigExtenderService
- Service Provider Class for TwigExtesion Plugins.
Namespace
Drupal\twig_extenderCode
public function __construct(RendererInterface $renderer, UrlGeneratorInterface $url_generator, ThemeManagerInterface $theme_manager, DateFormatterInterface $date_formatter, TwigPluginManagerInterface $manager) {
parent::__construct($renderer, $url_generator, $theme_manager, $date_formatter);
$this->pluginManager = $manager;
$this->plugins = $this->pluginManager
->getDefinitions();
}