public function YamlFormTableSort::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/ YamlFormTableSort.php, line 20
Class
- YamlFormTableSort
- Provides a form element for a sortable table element.
Namespace
Drupal\yamlform\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#js_select' => TRUE,
'#responsive' => TRUE,
'#sticky' => FALSE,
'#pre_render' => [
[
$class,
'preRenderTable',
],
[
$class,
'preRenderYamlFormTableSort',
],
],
'#process' => [
[
$class,
'processYamlFormTableSort',
],
],
'#options' => [],
'#empty' => '',
'#theme' => 'table__table_sort',
];
}