You are here

public function VerboseTableResult::getInfo in Monitoring 8

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

src/Element/VerboseTableResult.php, line 34
Contains \Drupal\monitoring\Element\VerboseTableResult.

Class

VerboseTableResult
Provides the verbose output for a table result of a sensor plugin.

Namespace

Drupal\monitoring\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#title' => 'Result',
    '#header' => [],
    '#rows' => [],
    '#empty' => 'There are no results for this sensor to display.',
    '#query' => '',
    '#query_args' => [],
    '#pre_render' => [
      [
        $class,
        'preRenderVerboseTableResult',
      ],
    ],
    '#description' => '',
  ];
}