interface HierarchyOutlineStorageInterface in Entity Reference Hierarchy 8
Defines a common interface for hierarchy outline storage classes.
Hierarchy
- interface \Drupal\entity_hierarchy\HierarchyOutlineStorageInterface
Expanded class hierarchy of HierarchyOutlineStorageInterface
All classes that implement HierarchyOutlineStorageInterface
File
- src/
HierarchyOutlineStorageInterface.php, line 13 - Contains \Drupal\entity_hierarchy\HierarchyOutlineStorageInterface.
Namespace
Drupal\entity_hierarchyView source
interface HierarchyOutlineStorageInterface {
/**
* Deletes a hierarchy entry.
*
* @param int $nid
* Deletes a hierarchy entry.
*
* @return mixed
* Number of deleted hierarchy entries.
*/
public function delete($nid);
/**
* Inserts a hierarchy link.
*
* @param object $item (TODo: change to array)
* The link object to be inserted in the database.
* @param array $parents
* The array of parent ids for the link to be inserted.
*
* @return mixed
* The last insert ID of the query, if one exists.
*/
public function insert($item);
/**
* Updates hierarchy reference for links that were moved between hierarchies.
*
* @param int $nid
* The nid of the hierarchy entry to be updated.
* @param array $fields
* The array of fields to be updated.
*
* @return mixed
* The number of rows matched by the update query.
*/
public function update($nid, $fields);
public function hierarchyNodesByType($types);
public function hierarchyLoadParentNextChildWeight($pnid);
public function hierarchyRecordLoad($hid);
public function hierarchyRecordDelete($hid);
public function loadHierarchies($nids);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HierarchyOutlineStorageInterface:: |
public | function | Deletes a hierarchy entry. | 1 |
HierarchyOutlineStorageInterface:: |
public | function | 1 | |
HierarchyOutlineStorageInterface:: |
public | function | 1 | |
HierarchyOutlineStorageInterface:: |
public | function | 1 | |
HierarchyOutlineStorageInterface:: |
public | function | 1 | |
HierarchyOutlineStorageInterface:: |
public | function | Inserts a hierarchy link. | 1 |
HierarchyOutlineStorageInterface:: |
public | function | 1 | |
HierarchyOutlineStorageInterface:: |
public | function | Updates hierarchy reference for links that were moved between hierarchies. | 1 |