function TwigExtension::__construct
Same name in this branch
- 11.x core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
- 8.9.x core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
- 10 core/modules/sdc/src/Twig/TwigExtension.php \Drupal\sdc\Twig\TwigExtension::__construct()
- 10 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
Creates TwigExtension.
Parameters
\Drupal\sdc\ComponentPluginManager $pluginManager: The component plugin manager.
\Drupal\sdc\Component\ComponentValidator $componentValidator: The component validator.
File
-
core/
modules/ sdc/ src/ Twig/ TwigExtension.php, line 29
Class
- TwigExtension
- The twig extension so Drupal can recognize the new code.
Namespace
Drupal\sdc\TwigCode
public function __construct(ComponentPluginManager $pluginManager, ComponentValidator $componentValidator) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.