protected function WebformSubmissionBulkForm::getActions in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformSubmissionBulkForm.php \Drupal\webform\Form\WebformSubmissionBulkForm::getActions()
Get the entity type's actions
Return value
\Drupal\system\ActionConfigEntityInterface[] An associative array of actions.
Overrides WebformBulkFormBase::getActions
File
- src/
Form/ WebformSubmissionBulkForm.php, line 43
Class
- WebformSubmissionBulkForm
- Provides the webform submission bulk form.
Namespace
Drupal\webform\FormCode
protected function getActions() {
$actions = parent::getActions();
// Make sure user can delete any submission.
if (!$this->submissionDeleteAny) {
unset($actions['webform_submission_delete_action']);
}
return $actions;
}