public function AgeFieldFormatter::setDateFormat in Age Field Formatter 8.2
Same name and namespace in other branches
- 3.0.x src/Plugin/Field/FieldFormatter/AgeFieldFormatter.php \Drupal\age_field_formatter\Plugin\Field\FieldFormatter\AgeFieldFormatter::setDateFormat()
Sets date format storage.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $date_format_storage: The date format storage.
File
- src/
Plugin/ Field/ FieldFormatter/ AgeFieldFormatter.php, line 216
Class
- AgeFieldFormatter
- Plugin implementation of the 'age_field_formatter' formatter.
Namespace
Drupal\age_field_formatter\Plugin\Field\FieldFormatterCode
public function setDateFormat(EntityStorageInterface $date_format_storage) {
$this->dateFormatStorage = $date_format_storage;
}