public static function HMSFieldWidget::defaultSettings in HMS Field 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ HMSFieldWidget.php, line 49 - Contains \Drupal\hms_field\Plugin\Field\FieldWidget\HMSFieldWidget.
Class
- HMSFieldWidget
- Plugin implementation of the 'hms_default' widget.
Namespace
Drupal\hms_field\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return array(
'format' => "h:mm",
'default_placeholder' => 1,
'placeholder' => '',
) + parent::defaultSettings();
}