You are here

public static function EntityClassFormatter::defaultSettings in Entity 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/EntityClassFormatter.php, line 31

Class

EntityClassFormatter
Plugin implementation of the 'entity_class_formatter'.

Namespace

Drupal\entity_class_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'prefix' => '',
    'suffix' => '',
    'attr' => '',
  ] + parent::defaultSettings();
}