public function HierarchyManagerInterface::hierarchyGetAllowedChildTypes in Entity Reference Hierarchy 8
Get the allowed child node types for the given parent node type. This method uses configuration management to retrieve the hierarchy settings for allowed child types based on the parent node type.
Parameters
int/null $parent_type: The parent node type.
Return value
array An array of child node types allowed for a given parent node type.
See also
hierarchyCanBeParent
NodehierarchyChildrenForm::form
1 method overrides HierarchyManagerInterface::hierarchyGetAllowedChildTypes()
- HierarchyManager::hierarchyGetAllowedChildTypes in src/
HierarchyManager.php - Get the allowed child node types for the given parent node type. This method uses configuration management to retrieve the hierarchy settings for allowed child types based on the parent node type.
File
- src/
HierarchyManagerInterface.php, line 70 - Contains \Drupal\entity_hierarchy\HierarchyManagerInterface.
Class
- HierarchyManagerInterface
- Provides an interface defining a hierarchy manager.
Namespace
Drupal\entity_hierarchyCode
public function hierarchyGetAllowedChildTypes($parent_type);