public static function SvgFormatter::defaultSettings in SVG Formatter 8
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/ SvgFormatter.php, line 91
Class
- SvgFormatter
- Plugin implementation of the 'svg_formatter' formatter.
Namespace
Drupal\svg_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'inline' => FALSE,
'sanitize' => TRUE,
'apply_dimensions' => TRUE,
'width' => 100,
'height' => 100,
'enable_alt' => TRUE,
'alt_string' => '',
'enable_title' => TRUE,
'title_string' => '',
] + parent::defaultSettings();
}