ConfigExportForm.php in Drupal 9
File
core/modules/config/src/Form/ConfigExportForm.php
View source
<?php
namespace Drupal\config\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
class ConfigExportForm extends FormBase {
public function getFormId() {
return 'config_export_form';
}
public function buildForm(array $form, FormStateInterface $form_state) {
$form['submit'] = [
'#type' => 'submit',
'#value' => $this
->t('Export'),
];
return $form;
}
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('config.export_download');
}
}