function Tableselect::getInfo

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/Tableselect.php \Drupal\Core\Render\Element\Tableselect::getInfo()
  2. 8.9.x core/lib/Drupal/Core/Render/Element/Tableselect.php \Drupal\Core\Render\Element\Tableselect::getInfo()
  3. 11.x core/lib/Drupal/Core/Render/Element/Tableselect.php \Drupal\Core\Render\Element\Tableselect::getInfo()

Overrides Table::getInfo

File

core/lib/Drupal/Core/Render/Element/Tableselect.php, line 60

Class

Tableselect
Provides a form element for a table with radios or checkboxes in left column.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#input' => TRUE,
        '#js_select' => TRUE,
        '#multiple' => TRUE,
        '#responsive' => TRUE,
        '#sticky' => FALSE,
        '#pre_render' => [
            [
                $class,
                'preRenderTable',
            ],
            [
                $class,
                'preRenderTableselect',
            ],
        ],
        '#process' => [
            [
                $class,
                'processTableselect',
            ],
        ],
        '#options' => [],
        '#empty' => '',
        '#theme' => 'table__tableselect',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.