You are here

public function Dates::__construct in Bamboo Twig 8

TwigExtension constructor.

File

src/TwigExtension/Dates.php, line 23

Class

Dates
Provides a 'Dates' Twig Extensions.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

public function __construct(DateFormatter $dateFormatter) {
  $this->dateFormatter = $dateFormatter;
}