Search for lock

  1. Search 7.x for lock
  2. Search 9.5.x for lock
  3. Search 8.9.x for lock
  4. Search 10.3.x for lock
  5. Search 11.x for lock
  6. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
lock service core/core.services.yml Drupal\Core\Lock\DatabaseLockBackend
Lock class core/lib/Drupal/Core/TempStore/Lock.php Provides a value object representing the lock from a TempStore.

All search results

Title Object type File name Summary
LockAcquiringException class core/lib/Drupal/Core/Lock/LockAcquiringException.php LockAcquiringException is thrown when a lock cannot be acquired.
LockAcquiringException.php file core/lib/Drupal/Core/Lock/LockAcquiringException.php
LockBackendAbstract class core/lib/Drupal/Core/Lock/LockBackendAbstract.php Non backend related common methods implementation for lock backends.
LockBackendAbstract.php file core/lib/Drupal/Core/Lock/LockBackendAbstract.php
LockBackendAbstract::$lockId property core/lib/Drupal/Core/Lock/LockBackendAbstract.php Current page lock token identifier.
LockBackendAbstract::$locks property core/lib/Drupal/Core/Lock/LockBackendAbstract.php Existing locks for this page.
LockBackendAbstract::getLockId function core/lib/Drupal/Core/Lock/LockBackendAbstract.php Gets the unique page token for locks.
LockBackendAbstract::wait function core/lib/Drupal/Core/Lock/LockBackendAbstract.php Waits a short amount of time before a second lock acquire attempt.
LockBackendAbstractTest class core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php Tests Drupal\Core\Lock\LockBackendAbstract.
LockBackendAbstractTest.php file core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php
LockBackendAbstractTest::$lock property core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php The Mocked LockBackendAbstract object.
LockBackendAbstractTest::setUp function core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php
LockBackendAbstractTest::testGetLockId function core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php Tests the getLockId() method.
LockBackendAbstractTest::testWaitFalse function core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php Tests the wait() method when lockMayBeAvailable() returns TRUE.
LockBackendAbstractTest::testWaitTrue function core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php Tests the wait() method when lockMayBeAvailable() returns FALSE.
LockBackendInterface interface core/lib/Drupal/Core/Lock/LockBackendInterface.php Lock backend interface.
LockBackendInterface.php file core/lib/Drupal/Core/Lock/LockBackendInterface.php
LockBackendInterface::acquire function core/lib/Drupal/Core/Lock/LockBackendInterface.php Acquires a lock.
LockBackendInterface::getLockId function core/lib/Drupal/Core/Lock/LockBackendInterface.php Gets the unique page token for locks.
LockBackendInterface::lockMayBeAvailable function core/lib/Drupal/Core/Lock/LockBackendInterface.php Checks if a lock is available for acquiring.
LockBackendInterface::release function core/lib/Drupal/Core/Lock/LockBackendInterface.php Releases the given lock.
LockBackendInterface::releaseAll function core/lib/Drupal/Core/Lock/LockBackendInterface.php Releases all locks for the given lock token identifier.
LockBackendInterface::wait function core/lib/Drupal/Core/Lock/LockBackendInterface.php Waits a short amount of time before a second lock acquire attempt.
LockFileValidator class core/modules/package_manager/src/Validator/LockFileValidator.php Checks that the active lock file is unchanged during stage operations.
LockFileValidator.php file core/modules/package_manager/src/Validator/LockFileValidator.php
LockFileValidator::$keyValue property core/modules/package_manager/src/Validator/LockFileValidator.php The key-value store.
LockFileValidator::deleteHash function core/modules/package_manager/src/Validator/LockFileValidator.php Deletes the stored lock file hash.
LockFileValidator::getHash function core/modules/package_manager/src/Validator/LockFileValidator.php Returns the XXH64 hash of a file.
LockFileValidator::getSubscribedEvents function core/modules/package_manager/src/Validator/LockFileValidator.php
LockFileValidator::KEY constant core/modules/package_manager/src/Validator/LockFileValidator.php The key under which to store the hash of the active lock file.
LockFileValidator::storeHash function core/modules/package_manager/src/Validator/LockFileValidator.php Stores the XXH64 hash of the active lock file.
LockFileValidator::validate function core/modules/package_manager/src/Validator/LockFileValidator.php Checks that the active lock file is unchanged during stage operations.
LockFileValidator::__construct function core/modules/package_manager/src/Validator/LockFileValidator.php
LockFileValidatorTest class core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests Drupal\package_manager\Validator\LockFileValidator.
LockFileValidatorTest.php file core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php
LockFileValidatorTest::$activeDir property core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php The path of the active directory in the test project.
LockFileValidatorTest::providerValidateStageEvents function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Data provider for test methods that validate the stage directory.
LockFileValidatorTest::register function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Registers test-specific services.
LockFileValidatorTest::setUp function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php
LockFileValidatorTest::testApplyWithNoChange function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests validation when the staged and active lock files are identical.
LockFileValidatorTest::testCreateWithLock function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests that if an active lock file exists, a stage can be created.
LockFileValidatorTest::testCreateWithNoLock function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests that if no active lock file exists, a stage cannot be created.
LockFileValidatorTest::testLockFileChanged function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests validation when the lock file has changed.
LockFileValidatorTest::testLockFileDeleted function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests validation when the lock file is deleted.
LockFileValidatorTest::testNoStoredHash function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests exception when a stored hash of the active lock file is unavailable.
LockFileValidatorTest::testStatusCheckAvailableStage function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests StatusCheckEvent when the stage is available.
LockFunctionalTest class core/modules/system/tests/src/Functional/Lock/LockFunctionalTest.php Confirm locking works between two separate requests.
LockFunctionalTest.php file core/modules/system/tests/src/Functional/Lock/LockFunctionalTest.php
LockFunctionalTest::$defaultTheme property core/modules/system/tests/src/Functional/Lock/LockFunctionalTest.php The theme to install as the default for testing.
LockFunctionalTest::$modules property core/modules/system/tests/src/Functional/Lock/LockFunctionalTest.php Modules to install.

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