function ClientSideFilterTable::getInfo

Same name and namespace in other branches
  1. 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 49

Class

ClientSideFilterTable
Provides a render element for filterable table data.

Namespace

Drupal\devel\Element

Code

public function getInfo() : array {
  $class = static::class;
  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',
      ],
    ],
  ];
}