You are here

public function HierarchyManagerInterface::addHierarchyFormElement in Entity Reference Hierarchy 8

Builds the elements of the hierarchy form to be included on the node form.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

\Drupal\node\NodeInterface $node: The node whose form is being viewed.

\Drupal\Core\Session\AccountInterface $account: The account viewing the form.

bool $collapsed: If TRUE, the fieldset starts out collapsed.

Return value

array The form structure, with the hierarchy elements added.

See also

entity_hierarchy_form_node_form_alter

1 method overrides HierarchyManagerInterface::addHierarchyFormElement()
HierarchyManager::addHierarchyFormElement in src/HierarchyManager.php
Builds the elements of the hierarchy form to be included on the node form.

File

src/HierarchyManagerInterface.php, line 39
Contains \Drupal\entity_hierarchy\HierarchyManagerInterface.

Class

HierarchyManagerInterface
Provides an interface defining a hierarchy manager.

Namespace

Drupal\entity_hierarchy

Code

public function addHierarchyFormElement(array $form, FormStateInterface $form_state, NodeInterface $node, AccountInterface $account, $collapsed = TRUE);