You are here

private function HierarchyManager::hierarchyGetParentNextChildWeight in Entity Reference Hierarchy 8

Query the database to find the next available child weight for the given parent using the HierarchyOutlineStorage class.

Parameters

int $pnid: The parent id used to query the database to find the next available child weight where applicable.

Return value

mixed Todo: figure out what's being returned

See also

HierarchyOutlineStorage::hierarchyLoadParentNextChildWeight

hierarchyRecordSave

1 call to HierarchyManager::hierarchyGetParentNextChildWeight()
HierarchyManager::hierarchyRecordSave in src/HierarchyManager.php
Prepare an individual item to be added/removed to the database.

File

src/HierarchyManager.php, line 741
Contains \Drupal\entity_hierarchy\HierarchyManager.

Class

HierarchyManager
Defines a hierarchy manager.

Namespace

Drupal\entity_hierarchy

Code

private function hierarchyGetParentNextChildWeight($pnid) {
  return $this->hierarchyOutlineStorage
    ->hierarchyLoadParentNextChildWeight($pnid);
}