public function TwigExtension::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
Constructs \Drupal\Core\Template\TwigExtension.
Parameters
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
File
- core/
lib/ Drupal/ Core/ Template/ TwigExtension.php, line 68 - Contains \Drupal\Core\Template\TwigExtension.
Class
- TwigExtension
- A class providing Drupal Twig extensions.
Namespace
Drupal\Core\TemplateCode
public function __construct(RendererInterface $renderer) {
$this->renderer = $renderer;
}