InPreviewModeViewHelper
class InPreviewModeViewHelper extends AbstractRenderingStateViewHelper (View source)
ViewHelper to find out if Neos is rendering a preview mode.
= Examples =
Given we are currently in a preview mode:
Shown just for print preview mode.
Shown in all other cases.
```
Methods
NodeInterface|null
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.
protected ContentContext
getNodeContext(NodeInterface $node = null)
No description
void
initializeArguments()
Initialize the arguments.
bool
render()
No description