You are here

public function TreeLockTrait::setLockBackend in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x src/Storage/TreeLockTrait.php \Drupal\entity_hierarchy\Storage\TreeLockTrait::setLockBackend()

Sets lock backend.

Parameters

\Drupal\Core\Lock\LockBackendInterface $lockBackend: Lock backend.

Return value

$this

File

src/Storage/TreeLockTrait.php, line 40

Class

TreeLockTrait
Defines a trait for locking tree operations.

Namespace

Drupal\entity_hierarchy\Storage

Code

public function setLockBackend(LockBackendInterface $lockBackend) {
  $this->lockBackend = $lockBackend;
  return $this;
}