You are here

public function WebformTwigExtension::getFunctions in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Twig/WebformTwigExtension.php \Drupal\webform\Twig\WebformTwigExtension::getFunctions()

File

src/Twig/WebformTwigExtension.php, line 28

Class

WebformTwigExtension
Twig extension with some useful functions and filters.

Namespace

Drupal\webform\Twig

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('webform_html_editor_check_markup', [
      $this,
      'webformHtmlEditorCheckMarkup',
    ]),
    new \Twig_SimpleFunction('webform_debug', [
      $this,
      'webformDebug',
    ]),
    new \Twig_SimpleFunction('webform_token', [
      $this,
      'webformToken',
    ]),
  ];
}