$modules→findByFlag()
Find modules by matching flag
This is significantly faster than using findByInfo()
Available since version 3.0.259.
Usage
// basic usage
$array = $modules->findByFlag(int $flag);
// usage with all arguments
$array = $modules->findByFlag(int $flag, $load = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$flag | int | Flag to match |
$load (optional) | bool int | Specify one of the following or omit for false:
|
Return value
arrayArray of modules, module names or module info arrays, indexed by module name.
$modules methods and properties
API reference based on ProcessWire core version 3.0.261