You are here

public static function ImageExportFormatter::defaultSettings in REST Views 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/ImageExportFormatter.php \Drupal\rest_views\Plugin\Field\FieldFormatter\ImageExportFormatter::defaultSettings()

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/ImageExportFormatter.php, line 28

Class

ImageExportFormatter
Process an image through an image style, and render the URL.

Namespace

Drupal\rest_views\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [
    'export_alt' => FALSE,
    'export_title' => FALSE,
  ] + parent::defaultSettings();
  unset($settings['image_link']);
  return $settings;
}