protected BookManager::recurseTableOfContents(array $tree, $indent, array &$toc, array $exclude, $depth_limit)
Recursively processes and formats book links for getTableOfContents().
This helper function recursively modifies the table of contents array for each item in the book tree, ignoring items in the exclude array or at a depth greater than the limit. Truncates titles over thirty characters and appends an indentation string incremented by depth.
Parameters
array $tree: The data structu