You are here

public static function LinkWidget::defaultSettings in Drupal 8

Same name and namespace in other branches
  1. 9 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 30

Class

LinkWidget
Plugin implementation of the 'link' widget.

Namespace

Drupal\link\Plugin\Field\FieldWidget

Code

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