You are here

ConfigExportForm.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/config/src/Form/ConfigExportForm.php

Namespace

Drupal\config\Form

File

core/modules/config/src/Form/ConfigExportForm.php
View source
<?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');
  }

}

Classes

Namesort descending Description
ConfigExportForm Defines the configuration export form.