You are here

public function DateApStyle::__construct in AP Style Date 8

Constructs \Drupal\Core\Template\TwigExtension.

Parameters

\Drupal\date_ap_style\ApStyleDateFormatter $date_formatter: The date formatter.

File

src/TwigExtension/DateApStyle.php, line 27

Class

DateApStyle
Custom twig filter to display dates as AP Style.

Namespace

Drupal\date_ap_style\TwigExtension

Code

public function __construct(ApStyleDateFormatter $date_formatter) {
  $this->apStyleDateFormatter = $date_formatter;
}