function ComponentsTwigExtension::getNodeVisitors
Same name in other branches
- 11.x core/lib/Drupal/Core/Template/ComponentsTwigExtension.php \Drupal\Core\Template\ComponentsTwigExtension::getNodeVisitors()
File
-
core/
lib/ Drupal/ Core/ Template/ ComponentsTwigExtension.php, line 36
Class
- ComponentsTwigExtension
- The twig extension so Drupal can recognize the new code.
Namespace
Drupal\Core\TemplateCode
public function getNodeVisitors() : array {
return [
new ComponentNodeVisitor($this->pluginManager),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.