You are here

public function HierarchyManagerInterface::hierarchyDefaultRecord in Entity Reference Hierarchy 8

Create a default object for a new hierarchy item.

Parameters

int/null $cnid: The child node id.

int/null $pnid: The parent node id.

Return value

object The new hierarchy item.

See also

entity_hierarchy_node_prepare_form

1 method overrides HierarchyManagerInterface::hierarchyDefaultRecord()
HierarchyManager::hierarchyDefaultRecord in src/HierarchyManager.php
Create a default object for a new hierarchy item.

File

src/HierarchyManagerInterface.php, line 84
Contains \Drupal\entity_hierarchy\HierarchyManagerInterface.

Class

HierarchyManagerInterface
Provides an interface defining a hierarchy manager.

Namespace

Drupal\entity_hierarchy

Code

public function hierarchyDefaultRecord($cnid = NULL, $pnid = NULL);