function SqlContentEntityStorageSchema::updateBackupRepository

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::updateBackupRepository()
  2. 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::updateBackupRepository()
  3. 11.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::updateBackupRepository()

Gets the key/value collection for tracking the entity update backups.

@todo Inject this dependency in the constructor once this class can be instantiated as a regular entity handler.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface A key/value collection.

See also

https://www.drupal.org/node/2332857

File

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

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.