Returns whether the current view is locked.
bool TRUE if the view is locked, FALSE otherwise.
public function isLocked() { $lock = $this->getLock(); return $lock && $lock->getOwnerId() != \Drupal::currentUser()->id(); }