You are here

public static function SvgImageFieldFormatter::defaultSettings in SVG Image Field 8

Same name and namespace in other branches
  1. 2.1.x src/Plugin/Field/FieldFormatter/SvgImageFieldFormatter.php \Drupal\svg_image_field\Plugin\Field\FieldFormatter\SvgImageFieldFormatter::defaultSettings()
  2. 2.0.x src/Plugin/Field/FieldFormatter/SvgImageFieldFormatter.php \Drupal\svg_image_field\Plugin\Field\FieldFormatter\SvgImageFieldFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/SvgImageFieldFormatter.php, line 36

Class

SvgImageFieldFormatter
Plugin implementation of the 'svg_formatter' formatter.

Namespace

Drupal\svg_image_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    // Implement default settings.
    'inline' => FALSE,
    'apply_dimensions' => TRUE,
    'width' => 25,
    'height' => 25,
    'enable_alt' => TRUE,
    'enable_title' => TRUE,
    'link' => '',
  ] + parent::defaultSettings();
}