HubMenuFilterOneConfigActive
in package
implements
FilterInterface
Class HubMenuFilterOneConfigActive
Interfaces, Classes and Traits
- FilterInterface
- Interface FilterInterface
Table of Contents
- FILTER_METHOD = 'oneConfigActive'
- $configurationService : ConfigurationService
- __construct() : mixed
- check() : bool
- Performs a check, so a later process can filter with that result.
- checkConfigActive() : bool
- Evaluates to true if the first argument is a configuration item that represents a "true - boolean" value.
- isTrue() : bool
- Evaluates the configuration item.
Constants
FILTER_METHOD
public
mixed
FILTER_METHOD
= 'oneConfigActive'
Properties
$configurationService
private
ConfigurationService
$configurationService
Methods
__construct()
public
__construct(ConfigurationService $configurationService) : mixed
Parameters
- $configurationService : ConfigurationService
Return values
mixed —check()
Performs a check, so a later process can filter with that result.
public
check(FilterConditionArguments $condition) : bool
Parameters
- $condition : FilterConditionArguments
Tags
Return values
bool —checkConfigActive()
Evaluates to true if the first argument is a configuration item that represents a "true - boolean" value.
public
checkConfigActive(string $arg) : bool
Parameters
- $arg : string
Return values
bool —isTrue()
Evaluates the configuration item.
private
isTrue(Configuration|null $configuration) : bool
This function performs several checks to determine if the given configuration should represent a "true - boolean" value. Returns false if it is not the case.
Parameters
- $configuration : Configuration|null