Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / ConfirmFormArrayPathTestForm.php
1 <?php
2
3 namespace Drupal\form_test;
4
5 use Drupal\Core\Url;
6
7 /**
8  * Provides a test confirmation form with a complex cancellation destination.
9  */
10 class ConfirmFormArrayPathTestForm extends ConfirmFormTestForm {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function getFormId() {
16     return 'form_test_confirm_array_path_test_form';
17   }
18
19   /**
20    * {@inheritdoc}
21    */
22   public function getCancelUrl() {
23     return new Url('form_test.route6', [], [
24       'query' => [
25         'destination' => 'admin/config',
26       ],
27     ]);
28   }
29
30   /**
31    * {@inheritdoc}
32    */
33   public function getCancelText() {
34     return $this->t('ConfirmFormArrayPathTestForm::getCancelText().');
35   }
36
37 }