You are here

public function HierarchyOutlineStorageInterface::insert in Entity Reference Hierarchy 8

Inserts a hierarchy link.

Parameters

object $item (TODo: change to array): The link object to be inserted in the database.

array $parents: The array of parent ids for the link to be inserted.

Return value

mixed The last insert ID of the query, if one exists.

1 method overrides HierarchyOutlineStorageInterface::insert()
HierarchyOutlineStorage::insert in src/HierarchyOutlineStorage.php
Inserts a hierarchy link.

File

src/HierarchyOutlineStorageInterface.php, line 38
Contains \Drupal\entity_hierarchy\HierarchyOutlineStorageInterface.

Class

HierarchyOutlineStorageInterface
Defines a common interface for hierarchy outline storage classes.

Namespace

Drupal\entity_hierarchy

Code

public function insert($item);