class InBackendViewHelper extends AbstractRenderingStateViewHelper (View source)

ViewHelper to find out if Neos is rendering the backend.

= Examples =

Given we are currently seeing the Neos backend:

Shown in the backend. Shown when not in backend. ``` Shown in the backend.

Properties

protected PrivilegeManager $privilegeManager from  AbstractRenderingStateViewHelper
protected ContentRepositoryRegistry $contentRepositoryRegistry from  AbstractRenderingStateViewHelper

Methods

NodeAddress
getNodeAddressOfContextNode(Node|null $node)

Get a node from the current Fusion context if available.

void
initializeArguments()

Initialize the arguments.

bool
render()

No description

Details

protected NodeAddress getNodeAddressOfContextNode(Node|null $node)

Get a node from the current Fusion context if available.

Parameters

Node|null $node

Return Value

NodeAddress

Exceptions

Exception

protected bool hasAccessToBackend()

No description

Return Value

bool

void initializeArguments()

Initialize the arguments.

Return Value

void

Exceptions

Exception

bool render()

No description

Return Value

bool

Exceptions

Exception