public SystemManager::listRequirements()
Displays the site status report. Can also be used as a pure check.
Return value
array An array of system requirements.
File
- core/modules/system/src/SystemManager.php, line 106
Class
- SystemManager
- System Manager Service.
Namespace
Drupal\system
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | public function listRequirements() { // Load .install files include_once DRUPAL_ROOT . '/core/includes/install.inc' ; drupal_load_updates(); // Check run-time requirements and status information. $requirements = $this ->moduleHandler->invokeAll( 'requirements' , array ( 'runtime' )); usort( $requirements , function ( $a , $b ) { if (!isset( $a [ 'weight' ])) { if (!isset( $b [ 'weight' ])) { return strcasecmp ( $a [ 'title' ], $b [ 'title' ]); } return - $b [ 'weight' ]; } return isset( $b [ 'weight' ]) ? $a [ 'weight' ] - $b [ 'weight' ] : $a [ 'weight' ]; }); return $requirements ; } |
Please login to continue.