public function ViewUI::isLocked in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 user tempstore.
File
- core/
modules/ views_ui/ src/ ViewUI.php, line 925 - Contains \Drupal\views_ui\ViewUI.
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function isLocked() {
return is_object($this->lock) && $this->lock->owner != \Drupal::currentUser()
->id();
}