public static function ImageFormatter::defaultSettings in Drupal 10
Same name and namespace in other branches
- 8 core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php \Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::defaultSettings()
- 9 core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php \Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
1 method overrides ImageFormatter::defaultSettings()
- ImageUrlFormatter::defaultSettings in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageUrlFormatter.php - Defines the default settings for this plugin.
File
- core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatter.php, line 106
Class
- ImageFormatter
- Plugin implementation of the 'image' formatter.
Namespace
Drupal\image\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'image_style' => '',
'image_link' => '',
'image_loading' => [
'attribute' => 'lazy',
],
] + parent::defaultSettings();
}