You are here

public function AdminPermissions::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/AdminPermissions.php, line 68

Class

AdminPermissions
Checks whether untrusted roles have restricted permissions.

Namespace

Drupal\security_review\Checks

Code

public function help() {
  $paragraphs = [];
  $paragraphs[] = $this
    ->t("Drupal's permission system is extensive and allows for varying degrees of control. Certain permissions would allow a user total control, or the ability to escalate their control, over your site and should only be granted to trusted users.");
  return [
    '#theme' => 'check_help',
    '#title' => $this
      ->t('Admin and trusted Drupal permissions'),
    '#paragraphs' => $paragraphs,
  ];
}