public function ViewsAccess::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/ ViewsAccess.php, line 134
Class
- ViewsAccess
- Checks for Views that do not check access.
Namespace
Drupal\security_review\ChecksCode
public function getMessage($result_const) {
switch ($result_const) {
case CheckResult::SUCCESS:
return $this
->t('Views are access controlled.');
case CheckResult::FAIL:
return $this
->t('There are Views that do not provide any access checks.');
case CheckResult::INFO:
return $this
->t('Module views is not enabled.');
default:
return $this
->t('Unexpected result.');
}
}