You are here

public static function GeneralUserReferenceFormatter::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 GeneralUserReferenceFormatter::defaultSettings()
GeneralUserReferenceFormatter::sanitizeSettings in src/Plugin/Field/FieldFormatter/GeneralUserReferenceFormatter.php
Sanitize settings to insure that they are safe and valid.

File

src/Plugin/Field/FieldFormatter/GeneralUserReferenceFormatter.php, line 292

Class

GeneralUserReferenceFormatter
Formats a user entity reference as one or more links.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

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