public function WebformElementBase::getTableColumn in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getTableColumn()
Get element's table column(s) settings.
Parameters
array $element: An element.
Return value
array An associative array containing an element's table column(s).
Overrides WebformElementInterface::getTableColumn
4 calls to WebformElementBase::getTableColumn()
- OptionsBase::getTableColumn in src/
Plugin/ WebformElement/ OptionsBase.php - Get element's table column(s) settings.
- WebformCompositeBase::getTableColumn in src/
Plugin/ WebformElement/ WebformCompositeBase.php - Get element's table column(s) settings.
- WebformLikert::getTableColumn in src/
Plugin/ WebformElement/ WebformLikert.php - Get element's table column(s) settings.
- WebformMapping::getTableColumn in src/
Plugin/ WebformElement/ WebformMapping.php - Get element's table column(s) settings.
4 methods override WebformElementBase::getTableColumn()
- OptionsBase::getTableColumn in src/
Plugin/ WebformElement/ OptionsBase.php - Get element's table column(s) settings.
- WebformCompositeBase::getTableColumn in src/
Plugin/ WebformElement/ WebformCompositeBase.php - Get element's table column(s) settings.
- WebformLikert::getTableColumn in src/
Plugin/ WebformElement/ WebformLikert.php - Get element's table column(s) settings.
- WebformMapping::getTableColumn in src/
Plugin/ WebformElement/ WebformMapping.php - Get element's table column(s) settings.
File
- src/
Plugin/ WebformElementBase.php, line 1830
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function getTableColumn(array $element) {
$key = $element['#webform_key'];
return [
'element__' . $key => [
'title' => $this
->getAdminLabel($element),
'sort' => TRUE,
'key' => $key,
'property_name' => NULL,
'element' => $element,
'plugin' => $this,
],
];
}