You are here

protected function DashboardController::buildLoggingSection in Purge 8.3

Add a section devoted to log configuration.

Return value

array The render array.

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

File

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

Class

DashboardController
Configuration dashboard for configuring the cache invalidation pipeline.

Namespace

Drupal\purge_ui\Controller

Code

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

  // phpcs:disable DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable -- PHP's extract() isn't understood by this sniffer..
  $build = $details($this
    ->t('Logging'));
  $build['#open'] = $this->request
    ->get('edit-logging', FALSE);
  $build['configure'] = $buttonlink($this
    ->t("Configure logging behavior"), 'logging', '90%');

  // phpcs:enable DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable -- PHP's extract() isn't understood by this sniffer..
  return $build;
}