public Table::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 ElementInterface::getInfo
File
- core/lib/Drupal/Core/Render/Element/Table.php, line 65
Class
- Table
- Provides a render element for a table.
Namespace
Drupal\Core\Render\Element
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | public function getInfo() { $class = get_class( $this ); return array ( '#header' => array (), '#rows' => array (), '#empty' => '' , // Properties for tableselect support. '#input' => TRUE, '#tree' => TRUE, '#tableselect' => FALSE, '#sticky' => FALSE, '#responsive' => TRUE, '#multiple' => TRUE, '#js_select' => TRUE, '#process' => array ( array ( $class , 'processTable' ), ), '#element_validate' => array ( array ( $class , 'validateTable' ), ), // Properties for tabledrag support. // The value is a list of arrays that are passed to // drupal_attach_tabledrag(). Table::preRenderTable() prepends the HTML ID // of the table to each set of options. // @see drupal_attach_tabledrag() '#tabledrag' => array (), // Render properties. '#pre_render' => array ( array ( $class , 'preRenderTable' ), ), '#theme' => 'table' , ); } |
Please login to continue.