NodeShortcutResolver
class NodeShortcutResolver (View source)
Can resolve the target for a given node.
Properties
protected NodeInterface | $node | ||
protected LinkingService | $linkingService |
Methods
NodeInterface|string|null
resolveShortcutTarget(NodeInterface $node)
Resolves a shortcut node to the target. The return value can be
Details
NodeInterface|string|null
resolveShortcutTarget(NodeInterface $node)
Resolves a shortcut node to the target. The return value can be
- a NodeInterface instance if the target is a node or a node:// URI
- a string (in case the target is a plain text URI or an asset:// URI)
- NULL in case the shortcut cannot be resolved