You are here

public static function MappedTerms::defaultStorageSettings in Search API Field Map 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldType/MappedTerms.php \Drupal\search_api_field_map\Plugin\Field\FieldType\MappedTerms::defaultStorageSettings()
  2. 8.2 src/Plugin/Field/FieldType/MappedTerms.php \Drupal\search_api_field_map\Plugin\Field\FieldType\MappedTerms::defaultStorageSettings()
  3. 4.x src/Plugin/Field/FieldType/MappedTerms.php \Drupal\search_api_field_map\Plugin\Field\FieldType\MappedTerms::defaultStorageSettings()

Defines the storage-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FieldItemBase::defaultStorageSettings

File

src/Plugin/Field/FieldType/MappedTerms.php, line 33
Contains \Drupal\search_api_field_map\Plugin\field\field_type\MappedTerms.

Class

MappedTerms
Plugin implementation of the 'mapped_terms' field type.

Namespace

Drupal\search_api_field_map\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return [
    'max_length' => static::MAPPED_TERMS_MAXLENGTH,
    'is_ascii' => FALSE,
  ] + parent::defaultStorageSettings();
}