You are here

public function ViewUI::setLock in Drupal 8

Same name and namespace in other branches
  1. 9 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

1 call to ViewUI::setLock()
ViewUI::__set in core/modules/views_ui/src/ViewUI.php

File

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

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

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