You are here

public static function LinkWidget::defaultSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php \Drupal\link\Plugin\Field\FieldWidget\LinkWidget::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php, line 34
Contains \Drupal\link\Plugin\Field\FieldWidget\LinkWidget.

Class

LinkWidget
Plugin implementation of the 'link' widget.

Namespace

Drupal\link\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return array(
    'placeholder_url' => '',
    'placeholder_title' => '',
  ) + parent::defaultSettings();
}