public function WebformTableSort::getInfo in Webform 8.5
Same name and namespace in other branches
- 6.x src/Element/WebformTableSort.php \Drupal\webform\Element\WebformTableSort::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/ WebformTableSort.php, line 21
Class
- WebformTableSort
- Provides a webform element for a sortable table 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,
'preRenderWebformTableSort',
],
],
'#process' => [
[
$class,
'processWebformTableSort',
],
],
'#options' => [],
'#empty' => '',
'#theme' => 'table__table_sort',
];
}