You are here

public static function MiconLinkWidget::defaultSettings in Micon 2.x

Same name and namespace in other branches
  1. 8 micon_link/src/Plugin/Field/FieldWidget/MiconLinkWidget.php \Drupal\micon_link\Plugin\Field\FieldWidget\MiconLinkWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides LinkWidget::defaultSettings

File

micon_link/src/Plugin/Field/FieldWidget/MiconLinkWidget.php, line 30

Class

MiconLinkWidget
Plugin implementation of the 'link' widget.

Namespace

Drupal\micon_link\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'placeholder_url' => '',
    'placeholder_title' => '',
    'target' => FALSE,
    'packages' => [],
    'icon' => '',
    'position' => FALSE,
  ] + parent::defaultSettings();
}