You are here

public function HackedController::hackedStatusManually in Hacked! 8.2

Page callback to rebuild the hacked report.

1 string reference to 'HackedController::hackedStatusManually'
hacked.routing.yml in ./hacked.routing.yml
hacked.routing.yml

File

src/Controller/HackedController.php, line 52

Class

HackedController
Controller routines for hacked routes.

Namespace

Drupal\hacked\Controller

Code

public function hackedStatusManually() {

  // We're going to be borrowing heavily from the update module
  if ($available = update_get_available(TRUE)) {
    $this
      ->moduleHandler()
      ->loadInclude('update', 'compare.inc');
    $data = update_calculate_project_data($available);
    return $this
      ->getProjectData($data, TRUE, 'admin/reports/hacked');
  }
  return $this
    ->redirect('hacked.report');
}