class LinkHelper implements ProtectedContextAwareInterface (View source)

Constants

private NODE_SCHEME

private ASSET_SCHEME

Properties

protected LoggerInterface $systemLogger
protected AssetRepository $assetRepository
protected ResourceManager $resourceManager
protected ContentRepositoryRegistry $contentRepositoryRegistry
protected NodeUriBuilderFactory $nodeUriBuilderFactory
protected LinkingService $linkingService

Methods

bool
hasSupportedScheme(string|UriInterface|null $uri)

No description

string|null
getScheme(string|UriInterface|null $uri)

No description

string|null
resolveNodeUri(string|UriInterface $uri, Node $contextNode, ControllerContext $controllerContext) deprecated

No description

string
resolveAssetUri(string|UriInterface $uri)

No description

convertUriToObject(string|UriInterface $uri, Node|null $contextNode = null)

No description

bool
allowsCallOfMethod(string $methodName)

No description

Details

bool hasSupportedScheme(string|UriInterface|null $uri)

No description

Parameters

string|UriInterface|null $uri

Return Value

bool

string|null getScheme(string|UriInterface|null $uri)

No description

Parameters

string|UriInterface|null $uri

Return Value

string|null

string|null resolveNodeUri(string|UriInterface $uri, Node $contextNode, ControllerContext $controllerContext) deprecated

deprecated with Neos 9 as the linking service is deprecated and this helper cannot be invoked from Fusion either way as the $controllerContext is not available.

No description

Parameters

string|UriInterface $uri
Node $contextNode
ControllerContext $controllerContext

Return Value

string|null

string resolveAssetUri(string|UriInterface $uri)

No description

Parameters

string|UriInterface $uri

Return Value

string

Node|AssetInterface|null convertUriToObject(string|UriInterface $uri, Node|null $contextNode = null)

No description

Parameters

string|UriInterface $uri
Node|null $contextNode

Return Value

Node|AssetInterface|null

bool allowsCallOfMethod(string $methodName)

No description

Parameters

string $methodName

Return Value

bool