FeatureViewHelper extends AbstractConditionViewHelper
FinalYes
ViewHelper to check if a feature flag is enabled, implemented as a condition like an "if" construct.
<f:feature name="myFeatureFlag">
<f:then>
Flag is enabled
</f:then>
<f:else>
Flag is undefined or not enabled
</f:else>
</f:feature>
Tags
Table of Contents
Methods
- initializeArguments() : void
- verdict() : bool
Methods
initializeArguments()
public
initializeArguments() : void
verdict()
public
static verdict(array<string|int, mixed> $arguments, RenderingContextInterface $renderingContext) : bool
Parameters
- $arguments : array<string|int, mixed>
- $renderingContext : RenderingContextInterface