class ConfigExportForm

Same name and namespace in other branches
  1. 11.x core/modules/config/src/Form/ConfigExportForm.php \Drupal\config\Form\ConfigExportForm

Defines the configuration export form.

@internal

Hierarchy

Expanded class hierarchy of ConfigExportForm

1 string reference to 'ConfigExportForm'
config.routing.yml in core/modules/config/config.routing.yml
core/modules/config/config.routing.yml

File

core/modules/config/src/Form/ConfigExportForm.php, line 13

Namespace

Drupal\config\Form
View source
class ConfigExportForm extends FormBase {
  
  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'config_export_form';
  }
  
  /**
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state) {
    $form['submit'] = [
      '#type' => 'submit',
      '#value' => $this->t('Export'),
    ];
    return $form;
  }
  
  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    $form_state->setRedirect('config.export_download');
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.