private function HierarchyManager::insertHierarchy in Entity Reference Hierarchy 8
Add a new hierarchy record to the database using the HierarchyOutlineStorage class.
Parameters
object $item: The hierarchy object to be written to the database.
Return value
mixed Todo: figure out what's being returned
See also
HierarchyOutlineStorage::insert
hierarchyRecordSave
1 call to HierarchyManager::insertHierarchy()
- HierarchyManager::hierarchyRecordSave in src/
HierarchyManager.php - Prepare an individual item to be added/removed to the database.
File
- src/
HierarchyManager.php, line 683 - Contains \Drupal\entity_hierarchy\HierarchyManager.
Class
- HierarchyManager
- Defines a hierarchy manager.
Namespace
Drupal\entity_hierarchyCode
private function insertHierarchy($item) {
return $this->hierarchyOutlineStorage
->insert($item);
}