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