public static function ResponsiveImageFormatter::defaultSettings in Drupal 10
Same name and namespace in other branches
- 8 core/modules/responsive_image/src/Plugin/Field/FieldFormatter/ResponsiveImageFormatter.php \Drupal\responsive_image\Plugin\Field\FieldFormatter\ResponsiveImageFormatter::defaultSettings()
- 9 core/modules/responsive_image/src/Plugin/Field/FieldFormatter/ResponsiveImageFormatter.php \Drupal\responsive_image\Plugin\Field\FieldFormatter\ResponsiveImageFormatter::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 call to ResponsiveImageFormatter::defaultSettings()
- ResponsiveImageFieldDisplayTest::doTestResponsiveImageFieldFormatters in core/
modules/ responsive_image/ tests/ src/ Functional/ ResponsiveImageFieldDisplayTest.php - Tests responsive image formatters on node display.
File
- core/
modules/ responsive_image/ src/ Plugin/ Field/ FieldFormatter/ ResponsiveImageFormatter.php, line 117
Class
- ResponsiveImageFormatter
- Plugin for responsive image formatter.
Namespace
Drupal\responsive_image\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'responsive_image_style' => '',
'image_link' => '',
] + parent::defaultSettings();
}