public static function AssociativeArrayWidget::defaultSettings in Map Widget 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/ AssociativeArrayWidget.php, line 28
Class
- AssociativeArrayWidget
- Plugin implementation of the 'map_item_widget' widget.
Namespace
Drupal\map_widget\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
$settings['size'] = 60;
$settings['key_placeholder'] = '';
$settings['value_placeholder'] = '';
return $settings;
}