You are here

public static function ImageUrlFormatter::defaultSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/Plugin/Field/FieldFormatter/ImageUrlFormatter.php \Drupal\image\Plugin\Field\FieldFormatter\ImageUrlFormatter::defaultSettings()
  2. 9 core/modules/image/src/Plugin/Field/FieldFormatter/ImageUrlFormatter.php \Drupal\image\Plugin\Field\FieldFormatter\ImageUrlFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides ImageFormatter::defaultSettings

File

core/modules/image/src/Plugin/Field/FieldFormatter/ImageUrlFormatter.php, line 25

Class

ImageUrlFormatter
Plugin implementation of the 'image_url' formatter.

Namespace

Drupal\image\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'image_style' => '',
  ];
}