You are here

public static function ButtonLinkFormatter::defaultSettings in Button 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/ButtonLinkFormatter.php, line 30

Class

ButtonLinkFormatter
Plugin implementation of the 'link_separate' formatter.

Namespace

Drupal\button_link\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'trim_length' => 80,
    'rel' => '',
    'target' => '',
    'link_text' => '',
    'btn_type' => 'btn-default',
    'btn_size' => '',
    'btn_block' => NULL,
    'icon_class' => '',
    'disable_btn_role' => 0,
  ] + parent::defaultSettings();
}