function BookManager::updateOutline

Same name in this branch
  1. 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::updateOutline()
Same name and namespace in other branches
  1. 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::updateOutline()
  2. 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::updateOutline()
  3. 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::updateOutline()
  4. 11.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::updateOutline()

Handles additions and updates to the book outline.

This common helper function performs all additions and updates to the book outline through node addition, node editing, node deletion, or the outline tab.

Parameters

\Drupal\node\NodeInterface $node: The node that is being saved, added, deleted, or moved.

Return value

bool TRUE if the book link was saved; FALSE otherwise.

Overrides BookManagerInterface::updateOutline

File

core/modules/book/src/ProxyClass/BookManager.php, line 113

Class

BookManager
Provides a proxy class for \Drupal\book\BookManager.

Namespace

Drupal\book\ProxyClass

Code

public function updateOutline(\Drupal\node\NodeInterface $node) {
  return $this->lazyLoadItself()
    ->updateOutline($node);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.