public static function ImageFormatter::defaultSettings in Image Hover Effects 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides ImageFormatter::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ ImageFormatter.php, line 30
Class
- ImageFormatter
- Plugin implementation of the 'image with hover effect' formatter.
Namespace
Drupal\image_hover_effects\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'hover_effect' => '',
'hover_text' => '',
] + parent::defaultSettings();
}