protected function SqlContentEntityStorageSchema::installedStorageSchema

protected 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

File

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

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!SqlContentEntityStorageSchema.php/function/SqlContentEntityStorageSchema::installedStorageSchema/8.1.x