You are here

public function TwigExtension::getFunctions in UI Patterns 8

File

src/Template/TwigExtension.php, line 22

Class

TwigExtension
Class UiPatternsTwigExtension.

Namespace

Drupal\ui_patterns\Template

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('pattern', [
      $this,
      'renderPattern',
    ]),
    new \Twig_SimpleFunction('pattern_preview', [
      $this,
      'renderPatternPreview',
    ]),
  ];
}