class NodeController extends ActionController (View source)

Controller for displaying nodes in the frontend

Properties

protected ContextFactoryInterface $contextFactory
protected SessionInterface $session
protected NodeShortcutResolver $nodeShortcutResolver
protected string $defaultViewObjectName
protected FusionView $view
protected PrivilegeManagerInterface $privilegeManager
protected PropertyMapper $propertyMapper

Methods

void
initializeShowAction()

Allow invisible nodes to be redirected to

string
showAction(NodeInterface $node = null)

Shows the specified node and takes visibility and access restrictions into account.

void
initializePreviewAction()

Allow invisible nodes to be previewed

string
previewAction(NodeInterface $node = null)

Previews a node that is not live (i.e. for the Backend Preview & Edit Mode)

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(NodeInterface $node)

Handles redirects to shortcut targets in live rendering.

Details

protected void initializeShowAction()

Allow invisible nodes to be redirected to

Return Value

void

string showAction(NodeInterface $node = null)

Shows the specified node and takes visibility and access restrictions into account.

Parameters

NodeInterface $node

Return Value

string

View output for the specified node

Exceptions

NodeNotFoundException

protected void initializePreviewAction()

Allow invisible nodes to be previewed

Return Value

void

Exceptions

NoSuchArgumentException

string previewAction(NodeInterface $node = null)

Previews a node that is not live (i.e. for the Backend Preview & Edit Mode)

Parameters

NodeInterface $node

Return Value

string

View output for the specified node

Exceptions

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(NodeInterface $node)

Handles redirects to shortcut targets in live rendering.

Parameters

NodeInterface $node

Return Value

void

Exceptions

UnresolvableShortcutException