class NodeController extends ActionController (View source)

Traits

Utility trait for retrieving node types for nodes with a built-in fallback mechanism

Properties

protected ContentRepositoryRegistry $contentRepositoryRegistry
protected SubgraphCachePool $subgraphCachePool
protected PrivilegeManagerInterface $privilegeManager
protected Now $now
protected Context $securityContext
protected SessionInterface $session
protected NodeShortcutResolver $nodeShortcutResolver
protected PropertyMapper $propertyMapper
protected string $defaultViewObjectName
protected FusionView $view
protected RenderingModeService $renderingModeService
protected int $shortcutRedirectHttpStatusCode
protected NodeUriBuilderFactory $nodeUriBuilderFactory
protected ContentRepositoryAuthorizationService $contentRepositoryAuthorizationService
protected ContentSubgraphCacheWarmup|null $contentSubgraphCacheWarmup

Methods

getNodeType(Node $node) deprecated

No description

void
previewAction(string $node)

No description

void
showAction(string $node)

Initializes the view with the necessary parameters encoded in the given NodeAddress

void
overrideViewVariablesFromInternalArguments()

Checks if the optionally given node context path, affected node context path and Fusion path are set and overrides the rendering to use those. Will also add a "X-Neos-AffectedNodePath" header in case the actually affected node is different from the one routing resolved.

void
handleShortcutNode(NodeAddress $nodeAddress)

Handles redirects to shortcut targets of nodes in the live workspace.

Details

protected NodeType getNodeType(Node $node) deprecated

deprecated to ease migration from Neos 8.3

No description

Parameters

Node $node

Return Value

NodeType

void previewAction(string $node)

No description

Parameters

string $node

Return Value

void

Exceptions

NodeNotFoundException
StopActionException
MissingActionNameException
SessionNotStartedException
Exception

void showAction(string $node)

Initializes the view with the necessary parameters encoded in the given NodeAddress

Parameters

string $node

Legacy name for backwards compatibility of route components

Return Value

void

Exceptions

NodeNotFoundException
StopActionException
MissingActionNameException
SessionNotStartedException
Exception

protected void overrideViewVariablesFromInternalArguments()

Checks if the optionally given node context path, affected node context path and Fusion path are set and overrides the rendering to use those. Will also add a "X-Neos-AffectedNodePath" header in case the actually affected node is different from the one routing resolved.

This is used in out of band rendering for the backend.

Return Value

void

Exceptions

NodeNotFoundException

protected void handleShortcutNode(NodeAddress $nodeAddress)

Handles redirects to shortcut targets of nodes in the live workspace.

Parameters

NodeAddress $nodeAddress

Return Value

void

Exceptions

NodeNotFoundException
StopActionException