Function Hook_admin_stats_users_online->info
Definitions
sources/hooks/modules/admin_stats/users_online.php
- Find metadata about stats graphs that are provided by this stats hook.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $for_kpi | boolean | No | No | False | N/A | N/A | Whether this is for setting up a KPI |
Returns
- Map of metadata (null: hook is disabled)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find metadata about stats graphs that are provided by this stats hook.
*
* @param boolean $for_kpi Whether this is for setting up a KPI
* @return ?array Map of metadata (null: hook is disabled)
*/
public function info(bool $for_kpi = false) : ?array
* Find metadata about stats graphs that are provided by this stats hook.
*
* @param boolean $for_kpi Whether this is for setting up a KPI
* @return ?array Map of metadata (null: hook is disabled)
*/
public function info(bool $for_kpi = false) : ?array

