Guides

DocReferenceTextRole extends AbstractReferenceTextRole
in package

FinalYes

Role to create a reference to a document.

Example:

:doc:`doc/index`

Table of Contents

Constants

NAME  = 'doc'

Properties

$useRawContent  : bool
$interlinkParser  : InterlinkParser
$referenceRegex  : string
https://regex101.com/r/KadqKx/1

Methods

__construct()  : mixed
getAliases()  : array<string|int, string>
getName()  : string
processNode()  : AbstractLinkInlineNode
createNode()  : DocReferenceNode
extractEmbeddedReference()  : ReferenceData

Constants

Properties

$referenceRegex

https://regex101.com/r/KadqKx/1

private string $referenceRegex = '/^(.*?)(<([^<]+)>)?$/s'

Methods

getAliases()

public getAliases() : array<string|int, string>
Tags
inheritDoc
Return values
array<string|int, string>

        
On this page

Search results