public function ViewUI::setLock in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::setLock()
- 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
File
- core/
modules/ views_ui/ src/ ViewUI.php, line 1353
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function setLock(Lock $lock) {
$this->lock = $lock;
return $this;
}