function book_node_update

Same name and namespace in other branches
  1. 7.x modules/book/book.module \book_node_update()
  2. 9 core/modules/book/book.module \book_node_update()
  3. 8.9.x core/modules/book/book.module \book_node_update()
  4. 10 core/modules/book/book.module \book_node_update()

Implements hook_ENTITY_TYPE_update() for node entities.

File

core/modules/book/book.module, line 272

Code

function book_node_update(EntityInterface $node) {
    
    /** @var \Drupal\book\BookManagerInterface $book_manager */
    $book_manager = \Drupal::service('book.manager');
    $book_manager->updateOutline($node);
}

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