You are here

public function ScanResultController::resultPage in Upgrade Status 8

Same name and namespace in other branches
  1. 8.3 src/Controller/ScanResultController.php \Drupal\upgrade_status\Controller\ScanResultController::resultPage()
  2. 8.2 src/Controller/ScanResultController.php \Drupal\upgrade_status\Controller\ScanResultController::resultPage()

Builds content for the error list page/popup.

Parameters

string $type: Type of the extension, it can be either 'module' or 'theme' or 'profile'.

string $project_machine_name: The machine name of the project.

Return value

array Build array.

1 string reference to 'ScanResultController::resultPage'
upgrade_status.routing.yml in ./upgrade_status.routing.yml
upgrade_status.routing.yml

File

src/Controller/ScanResultController.php, line 78

Class

ScanResultController

Namespace

Drupal\upgrade_status\Controller

Code

public function resultPage(string $type, string $project_machine_name) {
  $extension = $this->projectCollector
    ->loadProject($type, $project_machine_name);
  return $this->resultFormatter
    ->formatResult($extension);
}