PerformanceController.php

Same filename and directory in other branches
  1. 10 core/modules/system/src/Controller/PerformanceController.php

Namespace

Drupal\system\Controller

File

core/modules/system/src/Controller/PerformanceController.php

View source
<?php

namespace Drupal\system\Controller;

use Drupal\Core\Controller\ControllerBase;
use Drupal\system\Form\ClearCacheForm;
use Drupal\system\Form\PerformanceForm;

/**
 * Controller for performance admin.
 */
class PerformanceController extends ControllerBase {
    
    /**
     * Displays the system performance page.
     *
     * @return array
     *   A render array containing the cache-clear form and performance
     *   configuration form.
     */
    public function build() : array {
        return [
            'cache_clear' => $this->formBuilder()
                ->getForm(ClearCacheForm::class),
            'performance' => $this->formBuilder()
                ->getForm(PerformanceForm::class),
        ];
    }

}

Classes

Title Deprecated Summary
PerformanceController Controller for performance admin.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.