Function Hook_Health_Check->assertTrue
Definitions
sources/health_check.php
- Report a check result, with the message if it failed.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $result | boolean | No | No | required parameter | N/A | N/A | Whether the check passed |
| $message | string | No | No | required parameter | N/A | N/A | Failure message |
Preview
Code (PHP)
/**
* Report a check result, with the message if it failed.
*
* @param boolean $result Whether the check passed
* @param string $message Failure message
*/
protected function assertTrue(bool $result, string $message)
* Report a check result, with the message if it failed.
*
* @param boolean $result Whether the check passed
* @param string $message Failure message
*/
protected function assertTrue(bool $result, string $message)
