Guides

GenericLinkProvider
in package

FinalYes

Role to create references to link targets.

Example:

 :ref:`label`

Table of Contents

Properties

$prefixLinkTypeMapping  : array<string, string>
$textRoleLinkTypeMapping  : array<string, string>

Methods

addGenericLink()  : void
getLinkPrefix()  : string
getLinkType()  : string
getTextRoleLinkTypeMapping()  : array<string|int, string>

Properties

$prefixLinkTypeMapping

private array<string, string> $prefixLinkTypeMapping = ['ref' => '']

$textRoleLinkTypeMapping

private array<string, string> $textRoleLinkTypeMapping = ['ref' => \phpDocumentor\Guides\Nodes\SectionNode::STD_LABEL]

Methods

public addGenericLink(string $textRole, string $linkType[, string $prefix = '' ]) : void
Parameters
$textRole : string
$linkType : string
$prefix : string = ''

getLinkPrefix()

public getLinkPrefix(string $textRole) : string
Parameters
$textRole : string
Return values
string

getLinkType()

public getLinkType(string $textRole) : string
Parameters
$textRole : string
Return values
string

getTextRoleLinkTypeMapping()

public getTextRoleLinkTypeMapping() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results