function TestProfilerExtension::getNodeVisitors

File

core/modules/system/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.