You are here

public static function MiconLinkFormatter::defaultSettings in Micon 8

Same name and namespace in other branches
  1. 2.x micon_link/src/Plugin/Field/FieldFormatter/MiconLinkFormatter.php \Drupal\micon_link\Plugin\Field\FieldFormatter\MiconLinkFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides LinkFormatter::defaultSettings

File

micon_link/src/Plugin/Field/FieldFormatter/MiconLinkFormatter.php, line 63

Class

MiconLinkFormatter
Plugin implementation of the 'micon_link' formatter.

Namespace

Drupal\micon_link\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'title' => '',
    'icon' => '',
    'position' => 'before',
    'text_only' => '',
  ] + parent::defaultSettings();
}