public static function AttributeHelper::defaultDateOnlyWidget in Single DateTimePicker 8
Date only widget - for non single_datetime field types.
Return value
array Return attributes.
File
- src/
AttributeHelper.php, line 41
Class
- AttributeHelper
- Class AttributeHelper.
Namespace
Drupal\single_datetimeCode
public static function defaultDateOnlyWidget() {
return self::defaultWidget() + [
'data-single-date-time' => 'date',
];
}