PHP Class Neos\Neos\Controller\Frontend\NodeController

Inheritance: extends Neos\Flow\Mvc\Controller\ActionController
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$defaultViewObjectName string
$nodeShortcutResolver Neos\Neos\Domain\Service\NodeShortcutResolver
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$propertyMapper Neos\Flow\Property\PropertyMapper
$session Neos\Flow\Session\SessionInterface
$view Neos\Neos\View\TypoScriptView

Public Methods

Method Description
showAction ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string Shows the specified node and takes visibility and access restrictions into account.

Protected Methods

Method Description
handleShortcutNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Handles redirects to shortcut targets in live rendering.
overrideViewVariablesFromInternalArguments ( ) : void Checks if the optionally given node context path, affected node context path and typoscript 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.

Method Details

handleShortcutNode() protected method

Handles redirects to shortcut targets in live rendering.
protected handleShortcutNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
return void

overrideViewVariablesFromInternalArguments() protected method

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

showAction() public method

Shows the specified node and takes visibility and access restrictions into account.
public showAction ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface
return string View output for the specified node

Property Details

$contextFactory protected property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
return Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$defaultViewObjectName protected property

protected string $defaultViewObjectName
return string

$nodeShortcutResolver protected property

protected NodeShortcutResolver,Neos\Neos\Domain\Service $nodeShortcutResolver
return Neos\Neos\Domain\Service\NodeShortcutResolver

$privilegeManager protected property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$propertyMapper protected property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
return Neos\Flow\Property\PropertyMapper

$session protected property

protected SessionInterface,Neos\Flow\Session $session
return Neos\Flow\Session\SessionInterface

$view protected property

protected TypoScriptView,Neos\Neos\View $view
return Neos\Neos\View\TypoScriptView