FeatureViewHelper extends AbstractConditionViewHelper

FinalYes

This ViewHelper checks if a feature flag is enabled

Examples

Basic usage

::

<f:feature name="myFeatureFlag"> This is being shown if the flag is enabled </f:feature>

feature / then / else

::

<f:feature name="myFeatureFlag"> <f:then> Flag is enabled </f:then> <f:else> Flag is undefined or not enabled </f:else> </f:feature>

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
Return values
bool

        
On this page

Search results