You are here

protected function WebformEntityExportForm::actionsElement in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformEntityExportForm.php \Drupal\webform\WebformEntityExportForm::actionsElement()

Returns the action form element for the current entity form.

Overrides EntityForm::actionsElement

File

src/WebformEntityExportForm.php, line 32

Class

WebformEntityExportForm
Export webform configuration.

Namespace

Drupal\webform

Code

protected function actionsElement(array $form, FormStateInterface $form_state) {
  $element['download'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Download'),
    '#button_type' => 'primary',
  ];
  return $element;
}