class InEditModeViewHelper extends AbstractRenderingStateViewHelper (View source)

ViewHelper to find out if Neos is rendering an edit mode.

= Examples =

Given we are currently in an editing mode:

Shown for editing. Shown elsewhere (preview mode or not in backend). ``` Shown for editing. Given we are in the editing mode named "inPlace" Shown just for rawContent editing mode. Shown in all other cases. ``` Shown in all other cases.

Methods

getContextNode()

Get a node from the current Fusion context if available.

void
initializeArguments()

Initialize the arguments.

bool
render()

No description

Details

protected NodeInterface|null getContextNode()

Get a node from the current Fusion context if available.

Return Value

NodeInterface|null

protected ContentContext getNodeContext(NodeInterface $node = null)

No description

Parameters

NodeInterface $node

Return Value

ContentContext

Exceptions

Exception

void initializeArguments()

Initialize the arguments.

Return Value

void

Exceptions

Exception

bool render()

No description

Return Value

bool

Exceptions

Exception
Exception