HelpTestTwigExtension.php

Same filename in other branches
  1. 9 core/modules/help_topics/tests/modules/help_topics_twig_tester/src/HelpTestTwigExtension.php
  2. 10 core/modules/help/tests/modules/help_topics_twig_tester/src/HelpTestTwigExtension.php

Namespace

Drupal\help_topics_twig_tester

File

core/modules/help/tests/modules/help_topics_twig_tester/src/HelpTestTwigExtension.php

View source
<?php

declare (strict_types=1);
namespace Drupal\help_topics_twig_tester;

use Twig\Extension\AbstractExtension;

/**
 * Defines and registers Drupal Twig extensions for testing help topics.
 */
class HelpTestTwigExtension extends AbstractExtension {
    
    /**
     * {@inheritdoc}
     */
    public function getNodeVisitors() {
        return [
            new HelpTestTwigNodeVisitor(),
        ];
    }

}

Classes

Title Deprecated Summary
HelpTestTwigExtension Defines and registers Drupal Twig extensions for testing help topics.

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