Get the path + filename (or optionally URL) for module
Usage
// basic usage
$bool = $modulesFiles->getModuleFile($class);
// usage with all arguments
$bool = $modulesFiles->getModuleFile($class, $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
class | string, Module | Module class name or object instance |
options (optional) | array, bool | Options to modify default behavior:
|
Return value
bool
string
Returns string of module file, or false on failure.
ModulesFiles methods and properties
API reference based on ProcessWire core version 3.0.236