public function ConfigTestDeleteForm::submitForm

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: An associative array containing the current state of the form.

Overrides FormInterface::submitForm

File

drupal/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/ConfigTestDeleteForm.php, line 68
Contains \Drupal\config_test\Form\ConfigTestDeleteForm.

Class

ConfigTestDeleteForm
Delete confirmation form for config_test entities.

Namespace

Drupal\config_test\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->configTest
    ->delete();
  drupal_set_message(String::format('%label configuration has been deleted.', array(
    '%label' => $this->configTest
      ->label(),
  )));
  $form_state['redirect'] = 'admin/structure/config_test';
}