You are here

public static function FederatedTermsTextfieldWidget::defaultSettings in Search API Federated Solr 8

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

Class

FederatedTermsTextfieldWidget
Plugin implementation of the 'federated_terms_textfield' widget.

Namespace

Drupal\search_api_federated_solr\Plugin\Field\FieldWidget

Code

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