public function ViewsAccess::help in Security Review 8
Returns the check-specific help page.
Return value
array The render array of the check's help page.
Overrides Check::help
File
- src/
Checks/ ViewsAccess.php, line 67
Class
- ViewsAccess
- Checks for Views that do not check access.
Namespace
Drupal\security_review\ChecksCode
public function help() {
$paragraphs = [];
$paragraphs[] = $this
->t("Views can check if the user is allowed access to the content. It is recommended that all Views implement some amount of access control, at a minimum checking for the permission 'access content'.");
return [
'#theme' => 'check_help',
'#title' => $this
->t('Views access'),
'#paragraphs' => $paragraphs,
];
}