function StatusReportPage::preRenderRequirements

Same name in other branches
  1. 8.9.x core/modules/system/src/Element/StatusReportPage.php \Drupal\system\Element\StatusReportPage::preRenderRequirements()
  2. 10 core/modules/system/src/Element/StatusReportPage.php \Drupal\system\Element\StatusReportPage::preRenderRequirements()
  3. 11.x 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;
}

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