class LiveViewHelper extends AbstractRenderingStateViewHelper (View source)

ViewHelper to find out if Neos is rendering the live website.

Make sure you either give a node from the current context to the ViewHelper or have "node" set as template variable at least.

= Examples =

Given we are currently seeing the Neos backend:

Shown outside the backend. Shown in the backend. ``` Shown in the backend.

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

IllegalObjectTypeException
Exception