You are here

public static function BackgroundImageFormatter::defaultSettings in Simple Background image formatter 8

Defines the default settings for this plugin.

Return value

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

Overrides ImageFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/BackgroundImageFormatter.php, line 25

Class

BackgroundImageFormatter
Plugin implementation of the background_image_formatter.

Namespace

Drupal\background_image_formatter\Plugin\Field\FieldFormatter

Code

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