function Drupal::lock
Returns the locking layer instance.
Return value
\Drupal\Core\Lock\LockBackendInterface
Related topics
- Locking mechanisms
- Functions to coordinate long operations across requests.
1 call to Drupal::lock()
- TestHttpClientMiddleware::__invoke in core/
lib/ Drupal/ Core/ Test/ HttpClientMiddleware/ TestHttpClientMiddleware.php - HTTP middleware that replaces the user agent for test requests.
File
-
core/
lib/ Drupal.php, line 391
Class
- Drupal
- Static Service Container wrapper.
Code
public static function lock() {
return static::getContainer()->get('lock');
}