abstract protected function DateTimeFormatterBase::formatDate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase::formatDate()
Creates a formatted date value as a string.
Parameters
object $date: A date object.
Return value
string A formatted date string using the chosen format.
3 methods override DateTimeFormatterBase::formatDate()
- DateTimeCustomFormatter::formatDate in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeCustomFormatter.php - Creates a formatted date value as a string.
- DateTimeDefaultFormatter::formatDate in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeDefaultFormatter.php - Creates a formatted date value as a string.
- DateTimePlainFormatter::formatDate in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimePlainFormatter.php - Creates a formatted date value as a string.
File
- core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeFormatterBase.php, line 133 - Contains \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase.
Class
- DateTimeFormatterBase
- Base class for 'DateTime Field formatter' plugin implementations.
Namespace
Drupal\datetime\Plugin\Field\FieldFormatterCode
protected abstract function formatDate($date);