phpDocumentor

TocNodeRenderer
in package
implements NodeRenderer

Interfaces, Classes and Traits

NodeRenderer

Table of Contents

$environment  : Environment
$tocNode  : TocNode
__construct()  : mixed
render()  : string
buildLevel()  : void
generateAnchorFromTitle()  : string
generateTarget()  : array<string|int, mixed>
generateTargetId()  : string

Properties

Methods

buildLevel()

private buildLevel(string|null $url, array<string|int, array<string|int, mixed>> $titles, int $level, array<string|int, array<string|int, mixed>> &$tocItems) : void
Parameters
$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<string|int, mixed>
Parameters
$url : string|null
$title : array<string|int, string>|string
Return values
array<string|int, mixed>

generateTargetId()

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

Search results