You are here

public function ClientSideFilterTable::getInfo in Devel 8.3

Same name and namespace in other branches
  1. 8.2 src/Element/ClientSideFilterTable.php \Drupal\devel\Element\ClientSideFilterTable::getInfo()
  2. 4.x src/Element/ClientSideFilterTable.php \Drupal\devel\Element\ClientSideFilterTable::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

src/Element/ClientSideFilterTable.php, line 32

Class

ClientSideFilterTable
Provides a render element for filterable table data.

Namespace

Drupal\devel\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#filter_label' => $this
      ->t('Search'),
    '#filter_placeholder' => $this
      ->t('Search'),
    '#filter_description' => $this
      ->t('Search'),
    '#header' => [],
    '#rows' => [],
    '#empty' => '',
    '#sticky' => FALSE,
    '#responsive' => TRUE,
    '#attributes' => [],
    '#pre_render' => [
      [
        $class,
        'preRenderTable',
      ],
    ],
  ];
}