public function SmartDateRecurrenceFormatter::supportsDateAugmenter in Smart Date 3.4.x
Explicitly declare support for the Date Augmenter API.
Return value
array The keys and labels for the sets of configuration.
Overrides SmartDateTrait::supportsDateAugmenter
File
- modules/
smart_date_recur/ src/ Plugin/ Field/ FieldFormatter/ SmartDateRecurrenceFormatter.php, line 129
Class
- SmartDateRecurrenceFormatter
- Plugin for a recurrence-optimized formatter for 'smartdate' fields.
Namespace
Drupal\smart_date_recur\Plugin\Field\FieldFormatterCode
public function supportsDateAugmenter() {
// Return an array of configuration sets to use.
return [
'instances' => $this
->t('Individual Dates'),
'rule' => $this
->t('Recurring Rule'),
];
}