function ViewUI::setLock

Same name in other branches
  1. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::setLock()
  2. 8.9.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::setLock()
  3. 11.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::setLock()

Sets a lock on this View.

Parameters

\Drupal\Core\TempStore\Lock $lock: The lock object.

Return value

$this

File

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

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function setLock(Lock $lock) {
    $this->lock = $lock;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.