function BookManager::getTableOfContents
File
-
core/
modules/ book/ src/ BookManager.php, line 509
Class
- BookManager
- Defines a book manager.
Namespace
Drupal\bookCode
public function getTableOfContents($bid, $depth_limit, array $exclude = []) {
$tree = $this->bookTreeAllData($bid);
$toc = [];
$this->recurseTableOfContents($tree, '', $toc, $exclude, $depth_limit);
return $toc;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.