function StatusReportPage::preRenderRequirements
Same name in other branches
- 9 core/modules/system/src/Element/StatusReportPage.php \Drupal\system\Element\StatusReportPage::preRenderRequirements()
- 8.9.x core/modules/system/src/Element/StatusReportPage.php \Drupal\system\Element\StatusReportPage::preRenderRequirements()
- 10 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 132
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.