service entity_hierarchy.manager in Entity Reference Hierarchy 8
Class
Drupal\entity_hierarchy\HierarchyManager11 string references to entity_hierarchy.manager
- AdminSettingsForm::buildForm in src/
Form/ AdminSettingsForm.php - Form constructor.
- entity_hierarchy_form_node_form_alter in ./
entity_hierarchy.module - Implements Adds a vertical tab to the node form allowing a hierarchy parent to be selected or deleted. Here we're doing some permission checking, then presenting the form using the HierarchyManager class. We then use an #entity_builders callback…
- entity_hierarchy_form_node_type_form_alter in ./
entity_hierarchy.module - Implements Here we are altering the node type edit form to include hierarchy settings, such as setting which content types should support one or more child content types.
- entity_hierarchy_node_insert in ./
entity_hierarchy.module - Implements This function will be called whenever a new node is created. We will write the hierarchy information to the database if a parent is set on the node add form.
- entity_hierarchy_node_prepare_form in ./
entity_hierarchy.module - Implements We are loading the hierarchy parents for a given node id, and adding it to the node object for later processing in HierarchyManagerInterface::addHierarchyFormElement, which is called in entity_hierarchy_form_node_form_alter().
File
View source
- class: Drupal\entity_hierarchy\HierarchyManager
- arguments:
- - '@entity_type.manager'
- - '@string_translation'
- - '@config.factory'
- - '@entity_hierarchy.outline_storage'