Same name in other branches
  1. 6.0.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setDateFomatter()
  2. 8.x-4.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setDateFomatter()

Set date formatter service.

Paramètres

\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date formatter service.

Return value

$this

Fichier

src/AdvaggSettersTrait.php, line 163

Classe

AdvaggSettersTrait
The trait setters of ADVAGG module.

Namespace

Drupal\advagg

Code

public function setDateFomatter(DateFormatterInterface $dateFormatter) {
    $this->dateFormatter = $dateFormatter;
    return $this;
}