You are here

public function ViewUI::getLock in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::getLock()
  2. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::getLock()

Gets the lock on this View.

Return value

\Drupal\Core\TempStore\Lock|null The lock, if one exists.

1 call to ViewUI::getLock()
ViewUI::isLocked in core/modules/views_ui/src/ViewUI.php
Returns whether the current view is locked.

File

core/modules/views_ui/src/ViewUI.php, line 1341

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function getLock() {
  return $this->lock;
}