Version 1
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / ConfirmFormArrayPathTestForm.php
diff --git a/web/core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php b/web/core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php
new file mode 100644 (file)
index 0000000..eaa0f20
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+
+namespace Drupal\form_test;
+
+use Drupal\Core\Url;
+
+/**
+ * Provides a test confirmation form with a complex cancellation destination.
+ */
+class ConfirmFormArrayPathTestForm extends ConfirmFormTestForm {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFormId() {
+    return 'form_test_confirm_array_path_test_form';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCancelUrl() {
+    return new Url('form_test.route6', [], [
+      'query' => [
+        'destination' => 'admin/config',
+      ],
+    ]);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCancelText() {
+    return $this->t('ConfirmFormArrayPathTestForm::getCancelText().');
+  }
+
+}