You are here

public function Images::getFunctions in Bamboo Twig 8

List of all Twig functions.

File

bamboo_twig_images/src/TwigExtension/Images.php, line 40

Class

Images
Provides a 'Images' Twig Extensions.

Namespace

Drupal\bamboo_twig_images\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('image_style_field', [
      $this,
      'imageStyleField',
    ]),
    new \Twig_SimpleFunction('image_style_file', [
      $this,
      'imageStyleFile',
    ]),
    new \Twig_SimpleFunction('get_image', [
      $this,
      'getImage',
    ]),
  ];
}