function HelpTwigExtension::getFunctions

Same name in other branches
  1. 10 core/modules/help/src/HelpTwigExtension.php \Drupal\help\HelpTwigExtension::getFunctions()
  2. 11.x core/modules/help/src/HelpTwigExtension.php \Drupal\help\HelpTwigExtension::getFunctions()

File

core/modules/help_topics/src/HelpTwigExtension.php, line 57

Class

HelpTwigExtension
Defines and registers Drupal Twig extensions for rendering help topics.

Namespace

Drupal\help_topics

Code

public function getFunctions() {
    return [
        new TwigFunction('help_route_link', [
            $this,
            'getRouteLink',
        ]),
        new TwigFunction('help_topic_link', [
            $this,
            'getTopicLink',
        ]),
    ];
}

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