LiveViewHelper
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:
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.
protected bool
hasAccessToBackend()
No description
void
initializeArguments()
Initialize the arguments.
bool
render()
No description