public function ErrorReporting::getMessage in Security Review 8
Converts a result integer to a human-readable result message.
Parameters
int $result_const: The result integer.
Return value
string The human-readable result message.
Overrides Check::getMessage
File
- src/
Checks/ ErrorReporting.php, line 102
Class
- ErrorReporting
- Defines a security check that checks the error reporting setting.
Namespace
Drupal\security_review\ChecksCode
public function getMessage($result_const) {
switch ($result_const) {
case CheckResult::SUCCESS:
return $this
->t('Error reporting set to log only.');
case CheckResult::FAIL:
return $this
->t('Errors are written to the screen.');
default:
return $this
->t('Unexpected result.');
}
}