You are here

protected function TreeLockTrait::getLockName 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::getLockName()

Gets lock name.

Parameters

string $fieldName: Field name.

string $entityTypeId: Entity Type ID.

Return value

string Lock name.

2 calls to TreeLockTrait::getLockName()
TreeLockTrait::lockTree in src/Storage/TreeLockTrait.php
Locks tree.
TreeLockTrait::releaseLock in src/Storage/TreeLockTrait.php
Releases lock.

File

src/Storage/TreeLockTrait.php, line 91

Class

TreeLockTrait
Defines a trait for locking tree operations.

Namespace

Drupal\entity_hierarchy\Storage

Code

protected function getLockName($fieldName, $entityTypeId) {
  return sprintf('%s_%s', $fieldName, $entityTypeId);
}