InEditModeViewHelper
class InEditModeViewHelper extends AbstractViewHelper (View source)
ViewHelper to find out if Neos is rendering an edit mode.
= Examples =
Given we are currently in an editing mode:
Shown just for rawContent editing mode.
Shown in all other cases.
```
Traits
This trait is to be used in ViewHelpers that need to get information from the Fusion runtime context.
Methods
mixed
getContextVariable(string $variableName)
Get a variable value from the Fusion runtime context.
from
FusionContextTrait
void
initializeArguments()
Initialize the arguments.
bool
render()
No description
Details
protected mixed
getContextVariable(string $variableName)
Get a variable value from the Fusion runtime context.
Note: This will return NULL if the variable didn't exist.
protected bool
hasContextVariable(string $variableName)
No description
void
initializeArguments()
Initialize the arguments.
bool
render()
No description