You are here

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

File

src/Plugin/Field/FieldFormatter/GeneralLinkFormatter.php, line 134

Class

GeneralLinkFormatter
Formats a link field as one or more links.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array_merge([
    'titleStyle' => 'text_from_link',
    'titleCustomText' => '',
    'classes' => '',
    'showLink' => TRUE,
    'openLinkIn' => '_self',
    'noreferrer' => FALSE,
    'noopener' => FALSE,
    'nofollow' => FALSE,
    'linkTopic' => 'any',
    'listStyle' => 'span',
    'listSeparator' => ', ',
  ], parent::defaultSettings());
}