You are here

public function ProfilerExtension::getFunctions in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::getFunctions()
  2. 8.2 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::getFunctions()
  3. 4.x webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::getFunctions()

File

webprofiler/src/Twig/Extension/ProfilerExtension.php, line 61

Class

ProfilerExtension
Class ProfilerExtension

Namespace

Drupal\webprofiler\Twig\Extension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('abbr', [
      $this,
      'getAbbr',
    ]),
    new \Twig_SimpleFunction('idelink', [
      $this,
      'getIdeLink',
    ]),
  ];
}