function TestProfilerExtension::getNodeVisitors

Same name in this branch
  1. 11.x core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/Extension/TestProfilerExtension.php \Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension::getNodeVisitors()
Same name in other branches
  1. 10 core/modules/sdc/tests/modules/sdc_other_node_visitor/src/Twig/Extension/TestProfilerExtension.php \Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension::getNodeVisitors()
  2. 10 core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/Extension/TestProfilerExtension.php \Drupal\sdc_other_node_visitor\Twig\Extension\TestProfilerExtension::getNodeVisitors()

File

core/modules/sdc/tests/modules/sdc_other_node_visitor/src/Twig/Extension/TestProfilerExtension.php, line 16

Class

TestProfilerExtension
Twig extension to add a test node visitor.

Namespace

Drupal\sdc_other_node_visitor\Twig\Extension

Code

public function getNodeVisitors() : array {
    return [
        new TestNodeVisitor(static::class),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.