You are here

public static function EntityReferenceLabelClassFormatter::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 EntityReferenceLabelFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/EntityReferenceLabelClassFormatter.php, line 28

Class

EntityReferenceLabelClassFormatter
Plugin implementation of the 'file with class' formatter.

Namespace

Drupal\element_class_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $default_settings = parent::defaultSettings() + [
    'tag' => '',
  ];
  return ElementClassTrait::elementClassDefaultSettings($default_settings);
}