You are here

public static function MappedTermsTextfieldWidget::defaultSettings in Search API Field Map 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldWidget/MappedTermsTextfieldWidget.php \Drupal\search_api_field_map\Plugin\Field\FieldWidget\MappedTermsTextfieldWidget::defaultSettings()
  2. 8.2 src/Plugin/Field/FieldWidget/MappedTermsTextfieldWidget.php \Drupal\search_api_field_map\Plugin\Field\FieldWidget\MappedTermsTextfieldWidget::defaultSettings()
  3. 4.x src/Plugin/Field/FieldWidget/MappedTermsTextfieldWidget.php \Drupal\search_api_field_map\Plugin\Field\FieldWidget\MappedTermsTextfieldWidget::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/MappedTermsTextfieldWidget.php, line 25

Class

MappedTermsTextfieldWidget
Plugin implementation of the 'mapped_terms_textfield' widget.

Namespace

Drupal\search_api_field_map\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'size' => 75,
    'placeholder' => '',
  ] + parent::defaultSettings();
}