You are here

protected function WebformDevelEntitySchemaForm::actionsElement in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_devel/src/Form/WebformDevelEntitySchemaForm.php \Drupal\webform_devel\Form\WebformDevelEntitySchemaForm::actionsElement()

Returns the action form element for the current entity form.

Overrides EntityForm::actionsElement

File

modules/webform_devel/src/Form/WebformDevelEntitySchemaForm.php, line 126

Class

WebformDevelEntitySchemaForm
Get webform schema.

Namespace

Drupal\webform_devel\Form

Code

protected function actionsElement(array $form, FormStateInterface $form_state) {
  $actions = parent::actionsElement($form, $form_state);
  unset($actions['delete']);
  $actions['submit']['#value'] = $this
    ->t('Export');
  $actions['reset']['#attributes']['style'] = 'display: none';
  return $actions;
}