Skip to content

NamespaceIndexEmitter

Renders the index page for one namespace.

These pages are what the site’s navigation lists. Every class page is reached from the table on one of them rather than from the sidebar, because a sidebar naming all several hundred classes is rendered into every page of the site and would multiply its weight.

final class NamespaceIndexEmitter

SourceEmitter/NamespaceIndexEmitter.php

public function __construct(ApiIndex $index, TypeLinker $linker, Markdown $markdown = new Markdown(…)): mixed

ParameterTypeDescription
$indexApiIndex
$linkerTypeLinker
$markdownMarkdown

Returns mixed

MethodDescription
emit(string $namespace): EmittedArtifact

public function emit(string $namespace): EmittedArtifact

ParameterTypeDescription
$namespacestring

Returns EmittedArtifact