Documentation

TocNodeRenderer
in package
implements NodeRenderer

Interfaces, Classes and Traits

NodeRenderer

Table of Contents

$environment  : Environment
__construct()  : mixed
render()  : string
buildLevel()  : void
generateAnchorFromTitle()  : string
generateTarget()  : array{: mixed, : string}
generateTargetId()  : string

Properties

Methods

buildLevel()

private buildLevel(TocNode $node, string|null $url, array<string|int, array<string|int, mixed>> $titles, int $level, array<string|int, array<string|int, mixed>> &$tocItems) : void
Parameters
$node : TocNode
$url : string|null
$titles : array<string|int, array<string|int, mixed>>
$level : int
$tocItems : array<string|int, array<string|int, mixed>>
Return values
void

generateAnchorFromTitle()

private generateAnchorFromTitle(array<string|int, string>|string $title) : string
Parameters
$title : array<string|int, string>|string
Return values
string

generateTarget()

private generateTarget(string|null $url, array<string|int, string>|string $title) : array{: mixed, : string}
Parameters
$url : string|null
$title : array<string|int, string>|string
Return values
array{: mixed, : string}

generateTargetId()

private generateTargetId(string $target) : string
Parameters
$target : string
Return values
string

Search results