You are here

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

File

src/Plugin/Field/FieldFormatter/GeneralFileLinkFormatter.php, line 225

Class

GeneralFileLinkFormatter
Formats a file field as one or more links.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

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