class League / CommonMark / Extension / TableOfContents / TableOfContentsBuilder
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
final

TableOfContentsBuilder

Implements

  • League\...\ConfigurationAwareInterface

Constants

public

POSITION_TOP

Default: 'top'
public

POSITION_BEFORE_HEADINGS

Default: 'before-headings'
public

POSITION_PLACEHOLDER

Default: 'placeholder'

Properties

private

$config

Default: null

Methods

public

onDocumentParsed ( DocumentParsedEvent $event ) : void

private

insertBeforeFirstLinkedHeading ( Document $document , TableOfContents $toc ) : void

private

replacePlaceholders ( Document $document , TableOfContents $toc ) : void

public

setConfiguration ( League\...\ConfigurationInterface $configuration ) : void