You are here

public function Extension::getFunctions in Markdown 8.2

File

src/Twig/Extension.php, line 54

Class

Extension
Twig Markdown Extension.

Namespace

Drupal\markdown\Twig

Code

public function getFunctions() {
  return [
    'markdown' => new \Twig_SimpleFunction('markdown', [
      $this->markdown,
      'parse',
    ], [
      'is_safe' => [
        'html',
      ],
    ]),
  ];
}