ModulesLoader::initModule()
Initialize a single module
Usage
// basic usage
$bool = $modulesLoader->initModule(Module $module);
// usage with all arguments
$bool = $modulesLoader->initModule(Module $module, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$module | Module | |
$options (optional) | array |
|
Return value
boolTrue on success, false on fail
Exceptions
Method can throw exceptions on error:
\Exception- Only if thethrowoption is true.
ModulesLoader methods and properties
API reference based on ProcessWire core version 3.0.253