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