public static function ConfigDefaultImageFormatter::defaultSettings in Config default image 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/ ConfigDefaultImageFormatter.php, line 90
Class
- ConfigDefaultImageFormatter
- Plugin implementation of the 'image' formatter.
Namespace
Drupal\config_default_image\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'default_image' => [
'path' => '',
'use_image_style' => FALSE,
'alt' => '',
'title' => '',
'width' => NULL,
'height' => NULL,
],
] + parent::defaultSettings();
}