You are here

public static function ResponsiveImageFormatter::defaultSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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/src/Tests/ResponsiveImageFieldDisplayTest.php
Test responsive image formatters on node display.

File

core/modules/responsive_image/src/Plugin/Field/FieldFormatter/ResponsiveImageFormatter.php, line 118
Contains \Drupal\responsive_image\Plugin\Field\FieldFormatter\ResponsiveImageFormatter.

Class

ResponsiveImageFormatter
Plugin for responsive image formatter.

Namespace

Drupal\responsive_image\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'responsive_image_style' => '',
    'image_link' => '',
  ) + parent::defaultSettings();
}