You are here

public static function SearchApiExcludeEntityFieldWidget::defaultSettings in Search API Exclude Entity 8

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/SearchApiExcludeEntityFieldWidget.php, line 26

Class

SearchApiExcludeEntityFieldWidget
Advanced widget for search_api_exclude_entity field.

Namespace

Drupal\search_api_exclude_entity\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'field_label' => new TranslatableMarkup('Yes, exclude this entity from the search indexes.'),
  ] + parent::defaultSettings();
}