You are here

protected function WebformEntityVariantsForm::actionsElement in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\webform

Code

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;
}