protected function OptionsLimitWebformHandler::getTableSelectElements in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php \Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler::getTableSelectElements()
Get table select elements.
Return value
array An array containing table select elements.
1 call to OptionsLimitWebformHandler::getTableSelectElements()
- OptionsLimitWebformHandler::buildConfigurationForm in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Form constructor.
File
- modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php, line 1120
Class
- OptionsLimitWebformHandler
- Webform options and boolean (boolean) limit handler.
Namespace
Drupal\webform_options_limit\Plugin\WebformHandlerCode
protected function getTableSelectElements() {
$webform = $this
->getWebform();
$elements = $webform
->getElementsInitializedAndFlattened();
$tableselect_elements = [];
foreach ($elements as $element_key => $element) {
$webform_element = $this->elementManager
->getElementInstance($element);
if ($webform_element instanceof TableSelect) {
$tableselect_elements[$element_key] = $element_key;
}
}
return $tableselect_elements;
}