Interfaces, Classes and Traits
- NodeRenderer
Table of Contents
-
$environment
: Environment
-
__construct()
: mixed
-
render()
: string
-
buildLevel()
: void
-
generateAnchorFromTitle()
: string
-
generateTarget()
: array{: mixed, : string}
-
generateTargetId()
: string
__construct()
public
__construct(Environment $environment) : mixed
Parameters
-
$environment
: Environment
-
Return values
mixed
—
render()
public
render(Node $node) : string
Parameters
-
$node
: Node
-
Return values
string
—
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
—