Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tableselect.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal