Guides

ModifyTocPageEntry
in package

FinalYes

One page of "toc.json", before it is written.

Dispatched for every page, the orphans included, with what the renderer could say about it on its own: where it is, which files it was rendered to, its title and its anchor. A theme that knows more about a page -- a permalink, a deprecation, a content type -- adds it here.

The page's own children are not in the descriptor yet: they are added after this event, so that a listener cannot be surprised by a page it did not put there. ModifyTocPageEntry::getDocumentEntry() still reaches them, and each of them is dispatched in turn.

Table of Contents

Properties

$document  : DocumentNode|null
$documentEntry  : DocumentEntryNode
$page  : PageDescriptor

Methods

__construct()  : mixed
getDocument()  : DocumentNode|null
getDocumentEntry()  : DocumentEntryNode
getPage()  : PageDescriptor

Properties

Methods

On this page

Search results