You are here

protected property FieldStorageConfig::$indexes in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::indexes

The custom storage indexes for the field data storage.

This set of indexes is merged with the "default" indexes specified by the field type in the class implementing \Drupal\Core\Field\FieldItemInterface::schema() method to determine the actual set of indexes that get created.

The indexes are defined using the same definition format as Schema API index specifications. Only columns that are part of the field schema, as defined by the field type in the class implementing \Drupal\Core\Field\FieldItemInterface::schema() method, are allowed.

Some storage backends might not support indexes, and discard that information.

Type: array

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 192

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

protected $indexes = [];