Function Hook_Health_Check->call_homesite_api
Definitions
sources/health_check.php
- Call a homesite API function.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type | string | No | No | required parameter | N/A | N/A | API type |
| $id | string | No | No | Blank (empty string) | N/A | N/A | The RESTful ID (blank: none) |
| $params | array | No | No | [] | N/A | N/A | Map of URL parameters |
Returns
- API result
- Type: mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Call a homesite API function.
*
* @param string $type API type
* @param string $id The RESTful ID (blank: none)
* @param array $params Map of URL parameters
* @return mixed API result
*/
protected function call_homesite_api(string $type, string $id = '', array $params = [])
* Call a homesite API function.
*
* @param string $type API type
* @param string $id The RESTful ID (blank: none)
* @param array $params Map of URL parameters
* @return mixed API result
*/
protected function call_homesite_api(string $type, string $id = '', array $params = [])

