diff --git a/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php b/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php new file mode 100644 index 0000000..41b8546 --- /dev/null +++ b/core/modules/system/lib/Drupal/system/Controller/SystemInfoController.php @@ -0,0 +1,30 @@ + 'PHP', - 'page callback' => 'system_php', - 'access arguments' => array('administer site configuration'), - 'type' => MENU_CALLBACK, - 'file' => 'system.admin.inc', + 'route_name' => 'system_php', ); // Default page for batch operations. diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml index b285844..19b9fd8 100644 --- a/core/modules/system/system.routing.yml +++ b/core/modules/system/system.routing.yml @@ -73,3 +73,10 @@ system_site_maintenance_mode: _form: 'Drupal\system\Form\SiteMaintenanceModeForm' requirements: _permission: 'administer site configuration' + +system_php: + pattern: '/admin/reports/status/php' + defaults: + _controller: 'Drupal\system\Controller\SystemInfoController::php' + requirements: + _permission: 'administer site configuration'