diff --git a/core/modules/system/lib/Drupal/system/CronController.php b/core/modules/system/lib/Drupal/system/CronController.php index ddf0d6b..07c8dfb 100644 --- a/core/modules/system/lib/Drupal/system/CronController.php +++ b/core/modules/system/lib/Drupal/system/CronController.php @@ -18,7 +18,7 @@ class CronController { /** * Run Cron once. * - * @return Symfony\Component\HttpFoundation\Response + * @return \Symfony\Component\HttpFoundation\Response * A Symfony response object. */ public function run() { @@ -32,7 +32,7 @@ public function run() { /** * Run cron manually. * - * @return Symfony\Component\HttpFoundation\RedirectResponse + * @return \Symfony\Component\HttpFoundation\RedirectResponse * A Symfony direct response object. */ public function runManually() { diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 45be922..c5a8b16 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -999,7 +999,6 @@ function system_menu() { $items['admin/reports/status/run-cron'] = array( 'title' => 'Run cron', 'route_name' => 'system_run_cron', - 'type' => MENU_CALLBACK, 'file' => 'system.admin.inc', ); $items['admin/reports/status/php'] = array( diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml index 9f210fd..d483bff 100644 --- a/core/modules/system/system.routing.yml +++ b/core/modules/system/system.routing.yml @@ -77,7 +77,7 @@ system_site_maintenance_mode: system_run_cron: pattern: '/admin/reports/status/run-cron' defaults: - _controller: '\Drupal\system\CronController::runManual' + _controller: '\Drupal\system\CronController::runManually' requirements: _permission: 'administer site configuration'