You are here

public static function StatusReportPage::preRenderRequirements in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Element/StatusReportPage.php \Drupal\system\Element\StatusReportPage::preRenderRequirements()
  2. 9 core/modules/system/src/Element/StatusReportPage.php \Drupal\system\Element\StatusReportPage::preRenderRequirements()

#pre_render callback to create status report requirements.

File

core/modules/system/src/Element/StatusReportPage.php, line 130

Class

StatusReportPage
Creates status report page element.

Namespace

Drupal\system\Element

Code

public static function preRenderRequirements($element) {
  $element['#requirements'] = [
    '#type' => 'status_report',
    '#requirements' => $element['#requirements'],
  ];
  return $element;
}