function ClientSideFilterTable::getInfo

Same name in other branches
  1. 4.x src/Element/ClientSideFilterTable.php \Drupal\devel\Element\ClientSideFilterTable::getInfo()

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