Get or set flags for module by module ID
Omit all arguments to get flags for all modules indexed by module ID.
Returns null if given module ID not found.
Usage
// basic usage
$array = $modulesFlags->moduleFlags();
// usage with all arguments
$array = $modulesFlags->moduleFlags(int $moduleID = null, int $setValue = null);
Arguments
Name | Type(s) | Description |
---|---|---|
moduleID (optional) | int | This method only accepts module ID |
setValue (optional) | int | Flag(s) to set |
Return value
array
mixed
null
ModulesFlags methods and properties
API reference based on ProcessWire core version 3.0.236