public static function StatusReportPage::preRenderRequirements in Drupal 9
Same name and namespace in other branches
- 8 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\ElementCode
public static function preRenderRequirements($element) {
$element['#requirements'] = [
'#type' => 'status_report',
'#requirements' => $element['#requirements'],
];
return $element;
}