function SystemInfoController::status
Same name and namespace in other branches
- 11.x core/modules/system/src/Controller/SystemInfoController.php \Drupal\system\Controller\SystemInfoController::status()
- 10 core/modules/system/src/Controller/SystemInfoController.php \Drupal\system\Controller\SystemInfoController::status()
- 9 core/modules/system/src/Controller/SystemInfoController.php \Drupal\system\Controller\SystemInfoController::status()
- 8.9.x core/modules/system/src/Controller/SystemInfoController.php \Drupal\system\Controller\SystemInfoController::status()
Displays the site status report.
Attributes
#[Route(path: '/admin/reports/status', name: 'system.status', requirements: [
'_permission' => 'administer site configuration',
], defaults: [
'_title' => new TranslatableMarkup('Status report'),
])]
Return value
array A render array containing a list of system requirements for the Drupal installation and whether this installation meets the requirements.
File
-
core/
modules/ system/ src/ Controller/ SystemInfoController.php, line 54
Class
- SystemInfoController
- Returns responses for System Info routes.
Namespace
Drupal\system\ControllerCode
public function status() {
$requirements = $this->systemManager
->listRequirements();
return [
'#type' => 'status_report_page',
'#requirements' => $requirements,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.