You are here

protected function DashboardController::buildDiagnosticReport in Purge 8.3

Add a visual report on the current state of the purge module.

Return value

array The render array.

1 call to DashboardController::buildDiagnosticReport()
DashboardController::build in modules/purge_ui/src/Controller/DashboardController.php
Build all dashboard sections.

File

modules/purge_ui/src/Controller/DashboardController.php, line 190

Class

DashboardController
Configuration dashboard for configuring the cache invalidation pipeline.

Namespace

Drupal\purge_ui\Controller

Code

protected function buildDiagnosticReport() {
  extract($this
    ->getRenderLocals());

  // phpcs:disable DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable -- PHP's extract() isn't understood by this sniffer..
  $build = $fieldset($this
    ->t('Status'));
  $build['report'] = [
    '#theme' => 'purge_ui_diagnostics',
    '#diagnostics' => $this->purgeDiagnostics
      ->toRequirementsArray($this->purgeDiagnostics),
  ];

  // phpcs:enable DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable
  return $build;
}