You are here

public function StatusReport::getInfo in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/Element/StatusReport.php \Drupal\Core\Render\Element\StatusReport::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

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',
      ],
    ],
  ];
}