protected function WebformBulkFormBase::getBulkOptions in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformBulkFormBase.php \Drupal\webform\Form\WebformBulkFormBase::getBulkOptions()
Returns the available operations for this form.
Return value
array An associative array of operations, suitable for a select element.
1 call to WebformBulkFormBase::getBulkOptions()
- WebformBulkFormBase::buildForm in src/
Form/ WebformBulkFormBase.php - Form constructor.
File
- src/
Form/ WebformBulkFormBase.php, line 197
Class
- WebformBulkFormBase
- Provides the webform bulk form base.
Namespace
Drupal\webform\FormCode
protected function getBulkOptions() {
$actions = $this
->getActions();
$options = [];
foreach ($actions as $id => $action) {
$options[$id] = $action
->label();
}
return $options;
}