class IfModuleAccessibleViewHelper extends AbstractConditionViewHelper (View source)

Condition ViewHelper that can evaluate whether the currently authenticated user can access a given Backend module

Note: This is a quick fix for https://github.com/neos/neos-development-collection/issues/2854 that will be obsolete once the whole Backend module logic is rewritten

Methods

initializeArguments()

No description

string
render()

renders child if access to the given module is accessible, otherwise renders child.

static mixed
renderStatic(array $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)

No description

static bool
evaluateCondition(array $arguments, RenderingContextInterface $renderingContext)

No description

Details

initializeArguments()

No description

string render()

renders child if access to the given module is accessible, otherwise renders child.

Return Value

string

the rendered then/else child nodes depending on the access

static mixed renderStatic(array $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)

No description

Parameters

array $arguments
Closure $renderChildrenClosure
RenderingContextInterface $renderingContext

Return Value

mixed

static protected bool evaluateCondition(array $arguments, RenderingContextInterface $renderingContext)

No description

Parameters

array $arguments
RenderingContextInterface $renderingContext

Return Value

bool