You are here

public static function ButtonFieldHtml::defaultSettings in Button Field 8

Same name in this branch
  1. 8 src/Plugin/Field/FieldFormatter/ButtonFieldHtml.php \Drupal\button_field\Plugin\Field\FieldFormatter\ButtonFieldHtml::defaultSettings()
  2. 8 src/Plugin/Field/FieldWidget/ButtonFieldHtml.php \Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldHtml::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

src/Plugin/Field/FieldWidget/ButtonFieldHtml.php, line 27
Contains Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldHtml.

Class

ButtonFieldHtml
Plugin implementation of the 'button html' widget.

Namespace

Drupal\button_field\Plugin\Field\FieldWidget

Code

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