AbbreviationTextRole
extends BaseTextRole
in package
FinalYes
Role to create an abbreviation.
Example:
:abbreviation:`term (some term definition)`
Table of Contents
Properties
Methods
- __construct() : mixed
- getAliases() : array<string|int, string>
- getClass() : string
- getName() : string
- processNode() : AbbreviationInlineNode
- setClass() : void
- withName() : BaseTextRole
Properties
$class
protected
string
$class
= ''
$name
protected
string
$name
= 'abbreviation'
$logger read-only
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
getAliases()
public
getAliases() : array<string|int, string>
Return values
array<string|int, string>getClass()
public
getClass() : string
Return values
stringgetName()
public
getName() : string
Return values
stringprocessNode()
public
processNode(DocumentParserContext $documentParserContext, string $role, string $content, string $rawContent) : AbbreviationInlineNode
Parameters
- $documentParserContext : DocumentParserContext
- $role : string
- $content : string
-
the content with backslash escapes removed per spec
- $rawContent : string
-
the raw content, including backslash escapes
Return values
AbbreviationInlineNodesetClass()
public
setClass(string $class) : void
Parameters
- $class : string
withName()
public
withName(string $name) : BaseTextRole
Parameters
- $name : string