function TwigExtension::__construct

Same name in this branch
  1. 10 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
Same name in other branches
  1. 9 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
  2. 8.9.x core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::__construct()
  3. 11.x core/modules/sdc/src/Twig/TwigExtension.php \Drupal\sdc\Twig\TwigExtension::__construct()
  4. 11.x 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\Twig

Code

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.