public static function SmartDateTrait::settingsFormatNoDate in Smart Date 3.4.x
Same name and namespace in other branches
- 3.1.x src/SmartDateTrait.php \Drupal\smart_date\SmartDateTrait::settingsFormatNoDate()
- 3.2.x src/SmartDateTrait.php \Drupal\smart_date\SmartDateTrait::settingsFormatNoDate()
- 3.3.x src/SmartDateTrait.php \Drupal\smart_date\SmartDateTrait::settingsFormatNoDate()
Removes date tokens from format settings.
Parameters
array $settings: The formatter settings.
Return value
array The settings with date output stripped.
1 call to SmartDateTrait::settingsFormatNoDate()
- SmartDateDailyRangeFormatter::viewElements in modules/
smart_date_recur/ src/ Plugin/ Field/ FieldFormatter/ SmartDateDailyRangeFormatter.php
File
- src/
SmartDateTrait.php, line 396
Class
- SmartDateTrait
- Provides friendly methods for smart date range.
Namespace
Drupal\smart_dateCode
public static function settingsFormatNoDate(array $settings = []) {
if (isset($settings['date_format'])) {
$settings['date_format'] = '';
}
return $settings;
}