function TestDatabase::releaseLock

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::releaseLock()
  2. 10 core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::releaseLock()
  3. 11.x core/lib/Drupal/Core/Test/TestDatabase.php \Drupal\Core\Test\TestDatabase::releaseLock()

Releases a lock.

Return value

bool TRUE if successful, FALSE if not.

File

core/lib/Drupal/Core/Test/TestDatabase.php, line 148

Class

TestDatabase
Provides helper methods for interacting with the fixture database.

Namespace

Drupal\Core\Test

Code

public function releaseLock() {
    return unlink($this->getLockFile($this->lockId));
}

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