protected function InstagramAccountListBuilder::dateFormatter in Instagram Feeds 8
Gets date formatter service.
Return value
\Drupal\Core\Datetime\DateFormatterInterface The date formatter service.
File
- src/
InstagramAccountListBuilder.php, line 66
Class
- InstagramAccountListBuilder
- Lists instagram_account entities.
Namespace
Drupal\instagram_feedsCode
protected function dateFormatter() : DateFormatterInterface {
if (!isset($this->dateFormatterService)) {
$this->dateFormatterService = \Drupal::service('date.formatter');
}
return $this->dateFormatterService;
}