You are here

public function HelpController::index in Security Review 8

Serves as an entry point for the help pages.

Parameters

string|NULL $namespace: The namespace of the check (null if general page).

string $title: The name of the check.

Return value

array The requested help page.

1 string reference to 'HelpController::index'
security_review.routing.yml in ./security_review.routing.yml
security_review.routing.yml

File

src/Controller/HelpController.php, line 79

Class

HelpController
The class of the Help pages' controller.

Namespace

Drupal\security_review\Controller

Code

public function index($namespace, $title) {

  // If no namespace is set, print the general help page.
  if ($namespace === NULL) {
    return $this
      ->generalHelp();
  }

  // Print check-specific help.
  return $this
    ->checkHelp($namespace, $title);
}