function ComponentsTwigExtension::getNodeVisitors

Same name in other branches
  1. 10 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\Template

Code

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.