You are here

public static function ImageEmbedDataFormatter::defaultSettings in Formatter Suite 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/ImageEmbedDataFormatter.php, line 56

Class

ImageEmbedDataFormatter
Embeds an image as a data URL instead of a file URL.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array_merge([
    'maximumEmbedWidth' => '',
    'maximumEmbedHeight' => '',
  ], parent::defaultSettings());
}