You are here

public function BookManagerInterface::bookSubtreeData in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::bookSubtreeData()
  2. 9 core/modules/book/src/BookManagerInterface.php \Drupal\book\BookManagerInterface::bookSubtreeData()

Gets the data representing a subtree of the book hierarchy.

The root of the subtree will be the link passed as a parameter, so the returned tree will contain this item and all its descendants in the menu tree.

Parameters

array $link: A fully loaded book link.

Return value

A subtree of book links in an array, in the order they should be rendered.

File

core/modules/book/src/BookManagerInterface.php, line 277

Class

BookManagerInterface
Provides an interface defining a book manager.

Namespace

Drupal\book

Code

public function bookSubtreeData($link);