Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LinkWidget.php

function LinkWidget::defaultSettings

Overrides PluginSettingsBase::defaultSettings

File

core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php, line 29

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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal