TimestampAgoFormatter::$dateFormatter
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampAgoFormatter.php \Drupal\Core\Field\Plugin\Field\FieldFormatter\TimestampAgoFormatter::dateFormatter
- 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampAgoFormatter.php \Drupal\Core\Field\Plugin\Field\FieldFormatter\TimestampAgoFormatter::dateFormatter
- 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampAgoFormatter.php \Drupal\Core\Field\Plugin\Field\FieldFormatter\TimestampAgoFormatter::dateFormatter
The date formatter service.
Type: \Drupal\Core\Datetime\DateFormatterInterface
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ TimestampAgoFormatter.php, line 37
Class
- TimestampAgoFormatter
- Plugin implementation of the 'timestamp' formatter as time ago.
Namespace
Drupal\Core\Field\Plugin\Field\FieldFormatterCode
protected $dateFormatter;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.