You are here

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

Class

ErrorReporting
Defines a security check that checks the error reporting setting.

Namespace

Drupal\security_review\Checks

Code

public function help() {
  $paragraphs = [];
  $paragraphs[] = $this
    ->t('As a form of hardening your site you should avoid information disclosure. Drupal by default prints errors to the screen and writes them to the log. Error messages disclose the full path to the file where the error occurred.');
  return [
    '#theme' => 'check_help',
    '#title' => $this
      ->t('Error reporting'),
    '#paragraphs' => $paragraphs,
  ];
}