trait ConditionAccessResolverTrait (View source)

Resolves a set of conditions.

Methods

bool
resolveConditions(ConditionInterface[] $conditions, string $condition_logic)

Resolves the given conditions based on the condition logic ('and'/'or').

Details

protected bool resolveConditions(ConditionInterface[] $conditions, string $condition_logic)

Resolves the given conditions based on the condition logic ('and'/'or').

Parameters

ConditionInterface[] $conditions

A set of conditions.

string $condition_logic

The logic used to compute access, either 'and' or 'or'.

Return Value

bool

Whether these conditions grant or deny access.