function ViewUI::isLocked
Same name in other branches
- 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::isLocked()
- 8.9.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::isLocked()
- 10 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::isLocked()
Returns whether the current view is locked.
Return value
bool TRUE if the view is locked, FALSE otherwise.
1 call to ViewUI::isLocked()
- ViewUI::cacheSet in core/
modules/ views_ui/ src/ ViewUI.php - Sets a cached view object in the shared tempstore.
File
-
core/
modules/ views_ui/ src/ ViewUI.php, line 905
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function isLocked() {
$lock = $this->getLock();
return $lock && $lock->getOwnerId() != \Drupal::currentUser()->id();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.