Get or set module file extension type (1 or 2)
Usage
// basic usage
$int = $modulesFiles->moduleFileExt(string $class);
// usage with all arguments
$int = $modulesFiles->moduleFileExt(string $class, int $setValue = null);
Arguments
Name | Type(s) | Description |
---|---|---|
class | string | Module class name |
setValue (optional) | int | 1 for '.module' or 2 for '.module.php', or omit to get current value |
Return value
int
ModulesFiles methods and properties
API reference based on ProcessWire core version 3.0.236