Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078

This commit is contained in:
Pantheon Automation 2015-11-04 11:11:27 -08:00 committed by Greg Anderson
parent 6419a031d7
commit 4afb23bbd3
762 changed files with 20080 additions and 6368 deletions

View file

@ -38,7 +38,7 @@ class DatabaseLockBackend extends LockBackendAbstract {
}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::acquire().
* {@inheritdoc}
*/
public function acquire($name, $timeout = 30.0) {
// Insure that the timeout is at least 1 ms.
@ -92,7 +92,7 @@ class DatabaseLockBackend extends LockBackendAbstract {
}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::lockMayBeAvailable().
* {@inheritdoc}
*/
public function lockMayBeAvailable($name) {
$lock = $this->database->query('SELECT expire, value FROM {semaphore} WHERE name = :name', array(':name' => $name))->fetchAssoc();
@ -115,7 +115,7 @@ class DatabaseLockBackend extends LockBackendAbstract {
}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::release().
* {@inheritdoc}
*/
public function release($name) {
unset($this->locks[$name]);
@ -126,7 +126,7 @@ class DatabaseLockBackend extends LockBackendAbstract {
}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::releaseAll().
* {@inheritdoc}
*/
public function releaseAll($lock_id = NULL) {
// Only attempt to release locks if any were acquired.

View file

@ -29,7 +29,7 @@ abstract class LockBackendAbstract implements LockBackendInterface {
protected $locks = array();
/**
* Implements Drupal\Core\Lock\LockBackedInterface::wait().
* {@inheritdoc}
*/
public function wait($name, $delay = 30) {
// Pause the process for short periods between calling
@ -68,7 +68,7 @@ abstract class LockBackendAbstract implements LockBackendInterface {
}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::getLockId().
* {@inheritdoc}
*/
public function getLockId() {
if (!isset($this->lockId)) {

View file

@ -25,36 +25,36 @@ class NullLockBackend implements LockBackendInterface {
protected $lockId;
/**
* Implements Drupal\Core\Lock\LockBackedInterface::acquire().
* {@inheritdoc}
*/
public function acquire($name, $timeout = 30.0) {
return TRUE;
}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::lockMayBeAvailable().
* {@inheritdoc}
*/
public function lockMayBeAvailable($name) {
return TRUE;
}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::wait().
* {@inheritdoc}
*/
public function wait($name, $delay = 30) {}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::release().
* {@inheritdoc}
*/
public function release($name) {}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::releaseAll().
* {@inheritdoc}
*/
public function releaseAll($lock_id = NULL) {}
/**
* Implements Drupal\Core\Lock\LockBackedInterface::getLockId().
* {@inheritdoc}
*/
public function getLockId() {
if (!isset($this->lockId)) {