You are here

public static function RemoteImageWidget::defaultSettings in Remote image 8

Defines the default settings for this plugin.

Return value

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

Overrides LinkWidget::defaultSettings

File

src/Plugin/Field/FieldWidget/RemoteImageWidget.php, line 30
Contains Drupal\remote_image\Plugin\Field\FieldWidget\RemoteImageWidget.

Class

RemoteImageWidget
Plugin implementation of the 'remote_image' widget.

Namespace

Drupal\remote_image\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'placeholder_url' => '',
    'placeholder_title' => '',
    'placeholder_alt' => '',
    'placeholder_width' => '',
    'placeholder_height' => '',
  ] + parent::defaultSettings();
}