You are here

protected function SqlContentEntityStorageSchema::loadFieldSchemaData in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::loadFieldSchemaData()
  2. 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::loadFieldSchemaData()

Loads stored schema data for the given field storage definition.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.

Return value

array The field schema data array.

4 calls to SqlContentEntityStorageSchema::loadFieldSchemaData()
SqlContentEntityStorageSchema::getSharedTableFieldSchema in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Gets the schema for a single field definition.
SqlContentEntityStorageSchema::hasColumnChanges in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Compares schemas to check for changes in the column definitions.
SqlContentEntityStorageSchema::requiresFieldStorageSchemaChanges in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Checks if the changes to the storage definition requires schema changes.
SqlContentEntityStorageSchema::updateSharedTableSchema in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Updates the schema for a field stored in a shared table.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1265

Class

SqlContentEntityStorageSchema
Defines a schema handler that supports revisionable, translatable entities.

Namespace

Drupal\Core\Entity\Sql

Code

protected function loadFieldSchemaData(FieldStorageDefinitionInterface $storage_definition) {
  return $this
    ->installedStorageSchema()
    ->get($storage_definition
    ->getTargetEntityTypeId() . '.field_schema_data.' . $storage_definition
    ->getName(), []);
}