function HelpTwigExtension::getFunctions

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

File

core/modules/help/src/HelpTwigExtension.php, line 44

Class

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

Namespace

Drupal\help

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.