TwigExtension::setDateFormatter
public function TwigExtension::setDateFormatter
public TwigExtension::setDateFormatter(DateFormatterInterface $date_formatter)
Sets the date formatter.
Parameters
\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter.
Return value
$this
File
- core/lib/Drupal/Core/Template/TwigExtension.php, line 114