function ImageFormatter::defaultSettings

Same name in other branches
  1. 9 core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php \Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::defaultSettings()
  2. 8.9.x core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php \Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::defaultSettings()
  3. 10 core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php \Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::defaultSettings()

Overrides PluginSettingsBase::defaultSettings

File

core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php, line 104

Class

ImageFormatter
Plugin implementation of the 'image' formatter.

Namespace

Drupal\image\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
    return [
        'image_style' => '',
        'image_link' => '',
        'image_loading' => [
            'attribute' => 'lazy',
        ],
    ] + parent::defaultSettings();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.