You are here

public function Http4xxController::on403 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Controller/Http4xxController.php \Drupal\system\Controller\Http4xxController::on403()

The default 403 content.

Return value

array A render array containing the message to display for 404 pages.

File

core/modules/system/src/Controller/Http4xxController.php, line 35
Contains \Drupal\system\Controller\Http4xxController.

Class

Http4xxController
Controller for default HTTP 4xx responses.

Namespace

Drupal\system\Controller

Code

public function on403() {
  return [
    '#markup' => $this
      ->t('You are not authorized to access this page.'),
  ];
}