protected function WebformEntityVariantsForm::actionsElement in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformEntityVariantsForm.php \Drupal\webform\WebformEntityVariantsForm::actionsElement()
Returns the action form element for the current entity form.
Overrides EntityForm::actionsElement
File
- src/
WebformEntityVariantsForm.php, line 349
Class
- WebformEntityVariantsForm
- Provides a webform to manage submission variants.
Namespace
Drupal\webformCode
protected function actionsElement(array $form, FormStateInterface $form_state) {
$form = parent::actionsElement($form, $form_state);
$form['submit']['#value'] = $this
->t('Save variants');
unset($form['delete']);
return $form;
}