You are here

public static function RemoteImageItem::defaultFieldSettings in Remote image 8

Defines the field-level settings for this plugin.

Return value

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

Overrides LinkItem::defaultFieldSettings

File

src/Plugin/Field/FieldType/RemoteImageItem.php, line 36
Contains Drupal\remote_image\Plugin\Field\FieldType\RemoteImageField.

Class

RemoteImageItem
Plugin implementation of the 'remote_image' field type.

Namespace

Drupal\remote_image\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {

  // Add image settings to the default link settings.
  return [
    'alt_field' => 1,
    'alt_field_required' => 0,
    'title_field' => 1,
    'title_field_required' => 0,
  ] + array_diff_key(parent::defaultFieldSettings(), [
    'title' => FALSE,
  ]);
}