function ViewUI::getLock

Same name in other branches
  1. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::getLock()
  2. 8.9.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::getLock()
  3. 10 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 1355

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.