FieldStorageConfig::$indexes
Same name in other branches
- 8.9.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::indexes
- 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::indexes
- 11.x 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\EntityCode
protected $indexes = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.