You are here

service entity_hierarchy.manager in Entity Reference Hierarchy 8

Class

Drupal\entity_hierarchy\HierarchyManager
11 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().

... See full list

File

./entity_hierarchy.services.yml
entity_hierarchy.services.yml

View source
  1. class: Drupal\entity_hierarchy\HierarchyManager
  2. arguments:
  3. - '@entity_type.manager'
  4. - '@string_translation'
  5. - '@config.factory'
  6. - '@entity_hierarchy.outline_storage'