You are here

protected function PersistentDatabaseLockBackend::lazyLoadItself in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\PersistentDatabaseLockBackend::lazyLoadItself()
  2. 9 core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\PersistentDatabaseLockBackend::lazyLoadItself()

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

7 calls to PersistentDatabaseLockBackend::lazyLoadItself()
PersistentDatabaseLockBackend::acquire in core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php
Acquires a lock.
PersistentDatabaseLockBackend::getLockId in core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php
Gets the unique page token for locks.
PersistentDatabaseLockBackend::lockMayBeAvailable in core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php
Checks if a lock is available for acquiring.
PersistentDatabaseLockBackend::release in core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php
Releases the given lock.
PersistentDatabaseLockBackend::releaseAll in core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php
Releases all locks for the given lock token identifier.

... See full list

File

core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php, line 61

Class

PersistentDatabaseLockBackend
Provides a proxy class for \Drupal\Core\Lock\PersistentDatabaseLockBackend.

Namespace

Drupal\Core\ProxyClass\Lock

Code

protected function lazyLoadItself() {
  if (!isset($this->service)) {
    $this->service = $this->container
      ->get($this->drupalProxyOriginalServiceId);
  }
  return $this->service;
}