Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewUI.php

function 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_ui

Code

public function isLocked() {
    $lock = $this->getLock();
    return $lock && $lock->getOwnerId() != \Drupal::currentUser()->id();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal