You are here

public function YamlFormTableSelectSort::getInfo in YAML Form 8

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 Table::getInfo

File

src/Element/YamlFormTableSelectSort.php, line 20

Class

YamlFormTableSelectSort
Provides a form element for a sortable tableselect element.

Namespace

Drupal\yamlform\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#js_select' => TRUE,
    '#responsive' => TRUE,
    '#sticky' => FALSE,
    '#pre_render' => [
      [
        $class,
        'preRenderTable',
      ],
      [
        $class,
        'preRenderYamlFormTableSelectSort',
      ],
    ],
    '#process' => [
      [
        $class,
        'processYamlFormTableSelectSort',
      ],
    ],
    '#options' => [],
    '#empty' => '',
    '#theme' => 'table__tableselect_sort',
  ];
}