You are here

public function ScanResultFormatter::getRawResult in Upgrade Status 8

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

Get scanning result for an extension.

Parameters

Extension $extension: Drupal extension object.

Return value

null|array Scan results array or null if no scan results are saved.

2 calls to ScanResultFormatter::getRawResult()
ScanResultFormatter::formatAsciiResult in src/ScanResultFormatter.php
Format results output for an extension as ASCII.
ScanResultFormatter::formatResult in src/ScanResultFormatter.php
Format results output for an extension.

File

src/ScanResultFormatter.php, line 80

Class

ScanResultFormatter
Format scan results for display or export.

Namespace

Drupal\upgrade_status

Code

public function getRawResult(Extension $extension) {
  $scan_results = $this->scanResultStorage
    ->get($extension
    ->getName());
  if (!empty($scan_results)) {
    $scan_results = json_decode($scan_results, TRUE);
  }
  return $scan_results;
}