public function HierarchyManagerInterface::hierarchyCanBeParent in Entity Reference Hierarchy 8
Determines if a given node type is allowed to be a parent node.
Parameters
$node: The node object contains the node type, and the type is used to determine if this node can be a parent of any child. May pass the node type directly.
Return value
integer The number of allowed parent types for a given node type.
See also
HierarchyManager::hierarchyGetAllowedChildTypes
entity_hierarchy_form_node_form_alter
1 method overrides HierarchyManagerInterface::hierarchyCanBeParent()
File
- src/
HierarchyManagerInterface.php, line 111 - Contains \Drupal\entity_hierarchy\HierarchyManagerInterface.
Class
- HierarchyManagerInterface
- Provides an interface defining a hierarchy manager.
Namespace
Drupal\entity_hierarchyCode
public function hierarchyCanBeParent($node);