AnchorHyperlinkResolver
in package
implements
ReferenceResolver
FinalYes
Resolves references with an anchor URL.
A link is an anchor if it starts with a hashtag
Table of Contents
Interfaces
Constants
- PRIORITY = -100
Properties
Methods
- __construct() : mixed
- getPriority() : int
- resolve() : bool
Constants
PRIORITY
public
final mixed
PRIORITY
= -100
Properties
$anchorReducer read-only
private
AnchorNormalizer
$anchorReducer
$urlGenerator read-only
private
UrlGeneratorInterface
$urlGenerator
Methods
__construct()
public
__construct(AnchorNormalizer $anchorReducer, UrlGeneratorInterface $urlGenerator) : mixed
Parameters
- $anchorReducer : AnchorNormalizer
- $urlGenerator : UrlGeneratorInterface
getPriority()
public
static getPriority() : int
Return values
intresolve()
public
resolve(LinkInlineNode $node, RenderContext $renderContext, Messages $messages) : bool
Parameters
- $node : LinkInlineNode
- $renderContext : RenderContext
- $messages : Messages
Return values
bool —true if the reference is resolved