You are here

public function CalendarLinkTwigExtension::getFunctions in Calendar Link 8

Same name and namespace in other branches
  1. 2.x src/Twig/CalendarLinkTwigExtension.php \Drupal\calendar_link\Twig\CalendarLinkTwigExtension::getFunctions()

File

src/Twig/CalendarLinkTwigExtension.php, line 36

Class

CalendarLinkTwigExtension
Class CalendarLinkTwigExtension.

Namespace

Drupal\calendar_link\Twig

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('calendar_link', [
      $this,
      'calendarLink',
    ]),
    new \Twig_SimpleFunction('calendar_links', [
      $this,
      'calendarLinks',
    ]),
  ];
}