You are here

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

Class

TemporaryFiles
Check for sensitive temporary files like settings.php~.

Namespace

Drupal\security_review\Checks

Code

public function help() {
  $paragraphs = [];
  $paragraphs[] = $this
    ->t("Some file editors create temporary copies of a file that can be left on the file system. A copy of a sensitive file like Drupal's settings.php may be readable by a malicious user who could use that information to further attack a site.");
  return [
    '#theme' => 'check_help',
    '#title' => $this
      ->t('Sensitive temporary files'),
    '#paragraphs' => $paragraphs,
  ];
}