You are here

protected function TreeLockTrait::releaseLock in Entity Reference Hierarchy 3.x

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

Releases lock.

Parameters

string $fieldName: Field name.

string $entityTypeId: Entity Type ID.

4 calls to TreeLockTrait::releaseLock()
EntityReferenceHierarchy::postSave in src/Plugin/Field/FieldType/EntityReferenceHierarchy.php
Defines custom post-save behavior for field values.
EntityReferenceHierarchyFieldItemList::postSave in src/Plugin/Field/FieldType/EntityReferenceHierarchyFieldItemList.php
Defines custom post-save behavior for field values.
ParentEntityDeleteUpdater::moveChildren in src/Storage/ParentEntityDeleteUpdater.php
Moves children to their grandparent or root.
ParentEntityRevisionUpdater::moveChildren in src/Storage/ParentEntityRevisionUpdater.php
Move children from old revision to new revision.

File

src/Storage/TreeLockTrait.php, line 76

Class

TreeLockTrait
Defines a trait for locking tree operations.

Namespace

Drupal\entity_hierarchy\Storage

Code

protected function releaseLock($fieldName, $entityTypeId) {
  $this
    ->lockBackend()
    ->release($this
    ->getLockName($fieldName, $entityTypeId));
}