function EntityTestUpdateStorageSchema::getSharedTableFieldSchema
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test_update/src/EntityTestUpdateStorageSchema.php \Drupal\entity_test_update\EntityTestUpdateStorageSchema::getSharedTableFieldSchema()
- 8.9.x core/modules/system/tests/modules/entity_test_update/src/EntityTestUpdateStorageSchema.php \Drupal\entity_test_update\EntityTestUpdateStorageSchema::getSharedTableFieldSchema()
- 10 core/modules/system/tests/modules/entity_test_update/src/EntityTestUpdateStorageSchema.php \Drupal\entity_test_update\EntityTestUpdateStorageSchema::getSharedTableFieldSchema()
Overrides SqlContentEntityStorageSchema::getSharedTableFieldSchema
File
-
core/
modules/ system/ tests/ modules/ entity_test_update/ src/ EntityTestUpdateStorageSchema.php, line 31
Class
- EntityTestUpdateStorageSchema
- Defines the entity_test_update storage_schema handler.
Namespace
Drupal\entity_test_updateCode
protected function getSharedTableFieldSchema(FieldStorageDefinitionInterface $storage_definition, $table_name, array $column_mapping) {
$schema = parent::getSharedTableFieldSchema($storage_definition, $table_name, $column_mapping);
if (\Drupal::state()->get('entity_test_update.additional_field_index.' . $table_name . '.' . $storage_definition->getName())) {
$this->addSharedTableFieldIndex($storage_definition, $schema);
}
return $schema;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.