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
bool
True on success, false on fail
Exceptions
Method can throw exceptions on error:
\Exception
- Only if thethrow
option is true.
ModulesLoader methods and properties
API reference based on ProcessWire core version 3.0.236