NullLockBackend::lockMayBeAvailable

public NullLockBackend::lockMayBeAvailable($name) Checks if a lock is available for acquiring. Parameters string $name: Lock to acquire. Return value bool Overrides LockBackendInterface::lockMayBeAvailable File core/lib/Drupal/Core/Lock/NullLockBackend.php, line 32 Class NullLockBackend Defines a Null lock backend. Namespace Drupal\Core\Lock Code public function lockMayBeAvailable($name) { return TRUE; }

NullLockBackend::getLockId

public NullLockBackend::getLockId() Gets the unique page token for locks. Locks will be wiped out at the end of each page request on a token basis. Return value string Overrides LockBackendInterface::getLockId File core/lib/Drupal/Core/Lock/NullLockBackend.php, line 54 Class NullLockBackend Defines a Null lock backend. Namespace Drupal\Core\Lock Code public function getLockId() { if (!isset($this->lockId)) { $this->lockId = uniqid(mt_rand(), TRUE); } return $this->l

NullLockBackend::acquire

public NullLockBackend::acquire($name, $timeout = 30.0) Acquires a lock. Parameters string $name: Lock name. Limit of name's length is 255 characters. float $timeout: (optional) Lock lifetime in seconds. Defaults to 30.0. Return value bool Overrides LockBackendInterface::acquire File core/lib/Drupal/Core/Lock/NullLockBackend.php, line 25 Class NullLockBackend Defines a Null lock backend. Namespace Drupal\Core\Lock Code public function acquire($name, $timeout = 30.0) { return TRUE;

NullLockBackend::$lockId

Current page lock token identifier. Type: string File core/lib/Drupal/Core/Lock/NullLockBackend.php, line 20 Class NullLockBackend Defines a Null lock backend. Namespace Drupal\Core\Lock Code protected $lockId;

NullLockBackend

Defines a Null lock backend. This implementation won't actually lock anything and will always succeed on lock attempts. Hierarchy class \Drupal\Core\Lock\NullLockBackend implements LockBackendInterface Related topics Locking mechanisms Functions to coordinate long-running operations across requests. File core/lib/Drupal/Core/Lock/NullLockBackend.php, line 13 Namespace Drupal\Core\Lock Members Name Modifiers Type Description NullLockBackend::$lockId protected property C

NullGenerator::__construct

public NullGenerator::__construct(RequestStack $request_stack) Override the parent constructor. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. Overrides UrlGenerator::__construct File core/lib/Drupal/Core/Routing/NullGenerator.php, line 22 Class NullGenerator No-op implementation of a Url Generator, needed for backward compatibility. Namespace Drupal\Core\Routing Code public function __construct(RequestStack $request_stack) { $this->r

NullGenerator::setContext

public NullGenerator::setContext(SymfonyRequestContext $context) Overrides UrlGenerator::setContext File core/lib/Drupal/Core/Routing/NullGenerator.php, line 62 Class NullGenerator No-op implementation of a Url Generator, needed for backward compatibility. Namespace Drupal\Core\Routing Code public function setContext(SymfonyRequestContext $context) { }

NullGenerator::processRoute

protected NullGenerator::processRoute($name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) Passes the route to the processor manager for altering before compilation. Parameters string $name: The route name. \Symfony\Component\Routing\Route $route: The route object to process. array $parameters: An array of parameters to be passed to the route compiler. \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: (optional) Object to collect route process

NullGenerator::processPath

protected NullGenerator::processPath($path, &$options = array(), BubbleableMetadata $bubbleable_metadata = NULL) Passes the path to a processor manager to allow alterations. Overrides UrlGenerator::processPath File core/lib/Drupal/Core/Routing/NullGenerator.php, line 74 Class NullGenerator No-op implementation of a Url Generator, needed for backward compatibility. Namespace Drupal\Core\Routing Code protected function processPath($path, &$options = array(), BubbleableMetadata $b

NullGenerator::getRoute

protected NullGenerator::getRoute($name) generate(), generateFromRoute(), and getPathFromRoute() all call this protected method. Overrides UrlGenerator::getRoute File core/lib/Drupal/Core/Routing/NullGenerator.php, line 33 Class NullGenerator No-op implementation of a Url Generator, needed for backward compatibility. Namespace Drupal\Core\Routing Code protected function getRoute($name) { if ($name === '<front>') { return new Route('/'); } elseif ($name === '<current