diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/DeleteForm.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/DeleteForm.php deleted file mode 100644 index 4136d42..0000000 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/DeleteForm.php +++ /dev/null @@ -1,75 +0,0 @@ - $this->configTest->label())); - } - - /** - * {@inheritdoc} - */ - protected function getConfirmText() { - return t('Delete'); - } - - - /** - * {@inheritdoc} - */ - protected function getCancelPath() { - return 'admin/structure/config_test'; - } - - /** - * {@inheritdoc} - */ - public function getFormID() { - return 'config_test_delete_form'; - } - - /** - * Implements \Drupal\Drupal\Core\Form\ConfirmFormBase::buildForm(). - * - * @param \Drupal\config_test\ConfigTestInterface $config_test - * (optional) The ConfigTestInterface object to delete. - */ - public function buildForm(array $form, array &$form_state, ConfigTestInterface $config_test = NULL) { - $this->configTest = $config_test; - - return parent::buildForm($form, $form_state); - } - - /** - * {@inheritdoc} - */ - 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'; - } - -}