You are here

public function HelperExtension::getFunctions in Helper 8

File

src/Twig/HelperExtension.php, line 32

Class

HelperExtension
Twig extension with some useful functions and filters.

Namespace

Drupal\helper\Twig

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('file_data_uri', [
      $this,
      'fileDataUri',
    ]),
  ];
}