Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / config / src / Form / ConfigExportForm.php
1 <?php
2
3 namespace Drupal\config\Form;
4
5 use Drupal\Core\Form\FormBase;
6 use Drupal\Core\Form\FormStateInterface;
7
8 /**
9  * Defines the configuration export form.
10  *
11  * @internal
12  */
13 class ConfigExportForm extends FormBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   public function getFormId() {
19     return 'config_export_form';
20   }
21
22   /**
23    * {@inheritdoc}
24    */
25   public function buildForm(array $form, FormStateInterface $form_state) {
26     $form['submit'] = [
27       '#type' => 'submit',
28       '#value' => $this->t('Export'),
29     ];
30     return $form;
31   }
32
33   /**
34    * {@inheritdoc}
35    */
36   public function submitForm(array &$form, FormStateInterface $form_state) {
37     $form_state->setRedirect('config.export_download');
38   }
39
40 }