Guides

IndexTargetRegistrar
in package

FinalYes

Makes a named `.. index::` block a target a `:ref:` can link to.

A :name: on the directive names the place the entries are filed under, so the target points where the index does: at the section that follows the block, or the document's own title when none does -- the same answer IndexEntryCollector::placements() gives the index itself.

This cannot be left to the anchor handling a .. _label: gets. That runs while the tree still holds the unprocessed directive, well before the directive has been turned into an index node that could carry an anchor.

Table of Contents

Properties

$anchorNormalizer  : AnchorNormalizer
$collector  : IndexEntryCollector
$logger  : LoggerInterface

Methods

__construct()  : mixed
registerAll()  : void

Properties

Methods

On this page

Search results