function 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\helpCode
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.