ViewUI::isLocked

public ViewUI::isLocked()

Returns whether the current view is locked.

Return value

bool TRUE if the view is locked, FALSE otherwise.

File

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

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function isLocked() {
  return is_object($this->lock) && ($this->lock->owner != \Drupal::currentUser()->id());
}
doc_Drupal
2016-10-29 09:56:00
Comments
Leave a Comment

Please login to continue.