
| Current Path : /var/www/html/rocksensor1/web/core/modules/system/src/Controller/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/modules/system/src/Controller/PerformanceController.php |
<?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),
];
}
}