| Code Coverage | ||||||||||
| Classes and Traits | Functions and Methods | Lines | ||||||||
| Total |  | 0.00% | 0 / 1 |  | 0.00% | 0 / 3 | CRAP |  | 0.00% | 0 / 10 | 
| ConfigExportForm |  | 0.00% | 0 / 1 |  | 0.00% | 0 / 3 | 12 |  | 0.00% | 0 / 10 | 
| getFormId |  | 0.00% | 0 / 1 | 2 |  | 0.00% | 0 / 2 | |||
| buildForm |  | 0.00% | 0 / 1 | 2 |  | 0.00% | 0 / 6 | |||
| submitForm |  | 0.00% | 0 / 1 | 2 |  | 0.00% | 0 / 2 | |||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\config\Form\ConfigExportForm. | |
| */ | |
| namespace Drupal\config\Form; | |
| use Drupal\Core\Form\FormBase; | |
| use Drupal\Core\Form\FormStateInterface; | |
| /** | |
| * Defines the configuration export form. | |
| */ | |
| class ConfigExportForm extends FormBase { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getFormId() { | |
| return 'config_export_form'; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function buildForm(array $form, FormStateInterface $form_state) { | |
| $form['submit'] = array( | |
| '#type' => 'submit', | |
| '#value' => $this->t('Export'), | |
| ); | |
| return $form; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function submitForm(array &$form, FormStateInterface $form_state) { | |
| $form_state->setRedirect('config.export_download'); | |
| } | |
| } |