You are here

protected function SqlContentEntityStorageSchema::installedStorageSchema in Drupal 10

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

Gets the keyvalue collection for tracking the installed schema.

@todo Inject this dependency in the constructor once this class can be instantiated as a regular entity handler: https://www.drupal.org/node/2332857.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface

6 calls to SqlContentEntityStorageSchema::installedStorageSchema()
SqlContentEntityStorageSchema::deleteEntitySchemaData in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Deletes schema data for the given entity type definition.
SqlContentEntityStorageSchema::deleteFieldSchemaData in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Deletes schema data for the given field storage definition.
SqlContentEntityStorageSchema::loadEntitySchemaData in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Loads stored schema data for the given entity type definition.
SqlContentEntityStorageSchema::loadFieldSchemaData in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Loads stored schema data for the given field storage definition.
SqlContentEntityStorageSchema::saveEntitySchemaData in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Stores schema data for the given entity type definition.

... See full list

File

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

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

protected function installedStorageSchema() {
  if (!isset($this->installedStorageSchema)) {
    $this->installedStorageSchema = \Drupal::keyValue('entity.storage_schema.sql');
  }
  return $this->installedStorageSchema;
}