protected BookExport::exportTraverse(array $tree, $callable)
Traverses the book tree to build printable or exportable output.
During the traversal, the callback is applied to each node and is called recursively for each child of the node (in weight, title order).
Parameters
array $tree: A subtree of the book menu hierarchy, rooted at the current page.
callable $callable: A callback to be called upon visiting a node in the tree.
Return value
string The output generated in visiting each node.
F