You are here

public static function FixedTextLink::defaultSettings in Fixed text link formatter 8

Defines the default settings for this plugin.

Return value

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

Overrides LinkFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/FixedTextLink.php, line 25

Class

FixedTextLink
Plugin implementation of the 'link' formatter.

Namespace

Drupal\fixed_text_link_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'trim_length' => '',
    'link_text' => 'View website',
    'link_class' => '',
    'allow_override' => FALSE,
  ) + parent::defaultSettings();
}