You are here

public static function Drupal::lock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal.php \Drupal::lock()

Returns the locking layer instance.

Return value

\Drupal\Core\Lock\LockBackendInterface

Related topics

6 calls to Drupal::lock()
DrupalTest::testLock in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the lock() method.
RegistryTest::testMultipleSubThemes in core/modules/system/src/Tests/Theme/RegistryTest.php
Tests the theme registry with multiple subthemes.
RegistryTest::testRaceCondition in core/modules/system/src/Tests/Theme/RegistryTest.php
Tests the behavior of the theme registry class.
RegistryTest::testSuggestionPreprocessFunctions in core/modules/system/src/Tests/Theme/RegistryTest.php
Tests the theme registry with suggestions.
RegistryTest::testThemeRegistryAlterByTheme in core/modules/system/src/Tests/Theme/RegistryTest.php
Tests that the theme registry can be altered by themes.

... See full list

File

core/lib/Drupal.php, line 322
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function lock() {
  return static::getContainer()
    ->get('lock');
}