public static function ImageExportFormatter::defaultSettings in REST Views 8
Same name and namespace in other branches
- 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\FieldFormatterCode
public static function defaultSettings() {
$settings = [
'export_alt' => FALSE,
'export_title' => FALSE,
] + parent::defaultSettings();
unset($settings['image_link']);
return $settings;
}