You are here

public static function GeneralEntityReferenceFormatter::defaultSettings in Formatter Suite 8

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

1 call to GeneralEntityReferenceFormatter::defaultSettings()
GeneralEntityReferenceFormatter::sanitizeSettings in src/Plugin/Field/FieldFormatter/GeneralEntityReferenceFormatter.php
Sanitize settings to insure that they are safe and valid.

File

src/Plugin/Field/FieldFormatter/GeneralEntityReferenceFormatter.php, line 466

Class

GeneralEntityReferenceFormatter
Formats an entity reference as one or more links.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array_merge([
    'entityReferenceStyle' => 'title',
    'titleCustomText' => '',
    'classes' => '',
    'showLink' => TRUE,
    'openLinkIn' => '_self',
    'linkTopic' => 'any',
    'listStyle' => 'span',
    'listSeparator' => ', ',
  ], parent::defaultSettings());
}