function BookManagerInterface::addFormElements
Same name in other branches
- 8.9.x core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::addFormElements()
- 10 core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::addFormElements()
- 11.x core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::addFormElements()
Builds the common elements of the book form for the node and outline forms.
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 book elements added.
1 method overrides BookManagerInterface::addFormElements()
- BookManager::addFormElements in core/
modules/ book/ src/ BookManager.php - Builds the common elements of the book form for the node and outline forms.
File
-
core/
modules/ book/ src/ BookManagerInterface.php, line 236
Class
- BookManagerInterface
- Provides an interface defining a book manager.
Namespace
Drupal\bookCode
public function addFormElements(array $form, FormStateInterface $form_state, NodeInterface $node, AccountInterface $account, $collapsed = TRUE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.