You are here

public static function BgImageFieldWidget::defaultSettings in Background Image Field 8

Defines the default settings for this plugin.

Return value

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

Overrides ImageWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/BgImageFieldWidget.php, line 25

Class

BgImageFieldWidget
Plugin implementation of the 'image_image' widget.

Namespace

Drupal\bg_img_field\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = parent::defaultSettings();

  // Add the specific css settings.
  $settings['css_settings']['css_selector'] = '';
  $settings['css_settings']['css_repeat'] = 'inherit';
  $settings['css_settings']['css_background_size'] = 'inherit';
  $settings['css_settings']['css_background_position'] = 'inherit';
  $settings['hide_css_settings'] = 0;
  return $settings;
}