function StatusReport::getInfo

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Render/Element/StatusReport.php \Drupal\Core\Render\Element\StatusReport::getInfo()
  2. 10 core/lib/Drupal/Core/Render/Element/StatusReport.php \Drupal\Core\Render\Element\StatusReport::getInfo()
  3. 11.x core/lib/Drupal/Core/Render/Element/StatusReport.php \Drupal\Core\Render\Element\StatusReport::getInfo()

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/StatusReport.php, line 15

Class

StatusReport
Creates status report page element.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#theme' => 'status_report_grouped',
        '#priorities' => [
            'error',
            'warning',
            'checked',
            'ok',
        ],
        '#pre_render' => [
            [
                $class,
                'preRenderGroupRequirements',
            ],
        ],
    ];
}

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