public function WebformTableSelectSort::getInfo in Webform 8.5
Same name and namespace in other branches
- 6.x src/Element/WebformTableSelectSort.php \Drupal\webform\Element\WebformTableSelectSort::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 Table::getInfo
File
- src/
Element/ WebformTableSelectSort.php, line 21
Class
- WebformTableSelectSort
- Provides a webform element for a sortable tableselect element.
Namespace
Drupal\webform\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#js_select' => TRUE,
'#responsive' => TRUE,
'#sticky' => FALSE,
'#pre_render' => [
[
$class,
'preRenderTable',
],
[
$class,
'preRenderWebformTableSelectSort',
],
],
'#process' => [
[
$class,
'processWebformTableSelectSort',
],
],
'#options' => [],
'#empty' => '',
'#theme' => 'table__tableselect_sort',
];
}