protected function TreeLockTrait::getLockName in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 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\StorageCode
protected function getLockName($fieldName, $entityTypeId) {
return sprintf('%s_%s', $fieldName, $entityTypeId);
}