phpDocumentor

LinkAdapter
in package
implements LinkRendererInterface

FinalYes

Renders most of the links to elements, urls and urls with virtual schemes.

For more high level information on how references, see the documentation that accompanies this feature.

Tags
see
doc://hand-written-docs/references

how to link back to API elements from hand-written documentation.

Table of Contents

Interfaces

LinkRendererInterface
Renders an HTML anchor pointing to the location of the provided element.

Properties

$formatter  : HtmlFormatter
$rendererChain  : LinkRenderer
$urlGenerator  : UrlGenerator

Methods

__construct()  : mixed
render()  : string|array<int, string>
supports()  : bool
determineTitle()  : string
normalizePresentation()  : string
tryToResolveFqsenToDescriptor()  : string|Path|Type|DescriptorAbstract|Fqsen|Reference
Some passed types of value are references to an element; let's try to resolve these to a Descriptor.

Properties

Methods

render()

public render(mixed $value, string $presentation) : string|array<int, string>
Parameters
$value : mixed
$presentation : string
Return values
string|array<int, string>

supports()

public supports(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

normalizePresentation()

private normalizePresentation(string|Path|Type|DescriptorAbstract|Fqsen|Reference|Fqsen $resolvedTarget, string $presentation) : string
Parameters
$resolvedTarget : string|Path|Type|DescriptorAbstract|Fqsen|Reference|Fqsen
$presentation : string
Return values
string

tryToResolveFqsenToDescriptor()

Some passed types of value are references to an element; let's try to resolve these to a Descriptor.

private tryToResolveFqsenToDescriptor(string|Path|Type|DescriptorAbstract|Fqsen|Reference|Fqsen $target) : string|Path|Type|DescriptorAbstract|Fqsen|Reference

Should we not be able to resolve this to a Descriptor, we return the passed object or an FQSEN that could not be resolved because the element is not in the API docs.

Parameters
$target : string|Path|Type|DescriptorAbstract|Fqsen|Reference|Fqsen
Return values
string|Path|Type|DescriptorAbstract|Fqsen|Reference

        
On this page

Search results