You are here

public function Images::__construct in Bamboo Twig 8

TwigExtension constructor.

File

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

Class

Images
Provides a 'Images' Twig Extensions.

Namespace

Drupal\bamboo_twig_images\TwigExtension

Code

public function __construct(ImageFactory $imageFactory, ImageStyleGenerator $imageStyleGenerator) {
  $this->imageFactory = $imageFactory;
  $this->imageStyleGenerator = $imageStyleGenerator;
}