ModuleIsActive
extends AbstractHelper
in package
Table of Contents
Properties
- $locator : ContainerInterface
- Service locator.
Methods
- __invoke() : bool
- Get the active module.
- getRouteInfo() : array<string|int, string>
- Get the module.
- setServiceLocator() : void
- Set the service locator.
- getServiceLocator() : ContainerInterface
- Get the service locator.
Properties
$locator
Service locator.
protected
ContainerInterface
$locator
Methods
__invoke()
Get the active module.
public
__invoke(array<string|int, string> $condition) : bool
Parameters
- $condition : array<string|int, string>
Return values
bool —$condition
getRouteInfo()
Get the module.
public
getRouteInfo() : array<string|int, string>
Return values
array<string|int, string>setServiceLocator()
Set the service locator.
public
setServiceLocator(ContainerInterface $locator) : void
Parameters
- $locator : ContainerInterface
getServiceLocator()
Get the service locator.
protected
getServiceLocator() : ContainerInterface