You are here

public function HelpTwigExtension::getFunctions in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/help_topics/src/HelpTwigExtension.php \Drupal\help_topics\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',
    ]),
  ];
}