public static function ButtonFieldImage::defaultSettings in Button Field 8
Same name in this branch
- 8 src/Plugin/Field/FieldFormatter/ButtonFieldImage.php \Drupal\button_field\Plugin\Field\FieldFormatter\ButtonFieldImage::defaultSettings()
- 8 src/Plugin/Field/FieldWidget/ButtonFieldImage.php \Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldImage::defaultSettings()
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/ ButtonFieldImage.php, line 27 - Contains Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldImage.
Class
- ButtonFieldImage
- Plugin implementation of the 'button html' widget.
Namespace
Drupal\button_field\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return array(
'image_path' => '',
'alt_text' => '',
'title_text' => '',
) + parent::defaultSettings();
}