class NodeController extends ActionController (View source)

Event Sourced Node Controller; as Replacement of NodeController

Properties

protected ContentRepositoryRegistry $contentRepositoryRegistry
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 NodeSiteResolvingService $nodeSiteResolvingService

Methods

void
previewAction(string $node)

No description

void
showAction(string $node, bool $showInvisible = false)

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, ContentRepository $contentRepository)

Handles redirects to shortcut targets in live rendering.

Details

void previewAction(string $node)

No description

Parameters

string $node

Legacy name for backwards compatibility of route components

Return Value

void

Exceptions

NodeNotFoundException
StopActionException
UnsupportedRequestTypeException
MissingActionNameException
SessionNotStartedException
Exception

void showAction(string $node, bool $showInvisible = false)

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

Parameters

string $node

Legacy name for backwards compatibility of route components

bool $showInvisible

Return Value

void

Exceptions

NodeNotFoundException
StopActionException
UnsupportedRequestTypeException
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, ContentRepository $contentRepository)

Handles redirects to shortcut targets in live rendering.

Parameters

NodeAddress $nodeAddress
ContentRepository $contentRepository

Return Value

void

Exceptions

NodeNotFoundException
StopActionException
UnsupportedRequestTypeException