You are here

public static function FieldFormatterBase::defaultSettings in (Entity Reference) Field Formatters 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/FieldFormatterBase.php \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldFormatterBase::defaultSettings()
  2. 3.x src/Plugin/Field/FieldFormatter/FieldFormatterBase.php \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldFormatterBase::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

2 calls to FieldFormatterBase::defaultSettings()
FieldFormatterFromViewDisplay::defaultSettings in src/Plugin/Field/FieldFormatter/FieldFormatterFromViewDisplay.php
Defines the default settings for this plugin.
FieldFormatterWithInlineSettings::defaultSettings in src/Plugin/Field/FieldFormatter/FieldFormatterWithInlineSettings.php
Defines the default settings for this plugin.
2 methods override FieldFormatterBase::defaultSettings()
FieldFormatterFromViewDisplay::defaultSettings in src/Plugin/Field/FieldFormatter/FieldFormatterFromViewDisplay.php
Defines the default settings for this plugin.
FieldFormatterWithInlineSettings::defaultSettings in src/Plugin/Field/FieldFormatter/FieldFormatterWithInlineSettings.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldFormatter/FieldFormatterBase.php, line 44

Class

FieldFormatterBase
Base class for field formatters.

Namespace

Drupal\field_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return parent::defaultSettings() + [
    'link_to_entity' => FALSE,
  ];
}