You are here

public function DashboardController::build in Purge 8.3

Build all dashboard sections.

Return value

array The render array.

1 string reference to 'DashboardController::build'
purge_ui.routing.yml in modules/purge_ui/purge_ui.routing.yml
modules/purge_ui/purge_ui.routing.yml

File

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

Class

DashboardController
Configuration dashboard for configuring the cache invalidation pipeline.

Namespace

Drupal\purge_ui\Controller

Code

public function build() {
  $build = [
    '#theme' => [
      'purge_ui_dashboard',
    ],
    '#attached' => [
      'library' => [
        'purge_ui/dashboard',
      ],
    ],
  ];
  $build['info'] = [
    '#type' => 'item',
    '#markup' => $this
      ->t('When content on your website changes, your purge setup will take care of refreshing external caching systems and CDNs.'),
  ];
  $build['logging'] = $this
    ->buildLoggingSection();
  $build['diagnostics'] = $this
    ->buildDiagnosticReport();
  $build['purgers'] = $this
    ->buildPurgers();
  $build['queue'] = $this
    ->buildQueuersQueueProcessors();
  return $build;
}