You are here

public static function WrapperClassFormatter::defaultSettings in Element Class 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/WrapperClassFormatter.php, line 35

Class

WrapperClassFormatter
A field formatter for wrapping text with a class.

Namespace

Drupal\element_class_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $default_settings = parent::defaultSettings() + [
    'link' => '0',
    'link_class' => '',
    'tag' => 'div',
    'summary' => FALSE,
    'trim' => 200,
  ];
  return ElementClassTrait::elementClassDefaultSettings($default_settings);
}