ConfirmFormArrayPathTestForm.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php
  2. 8.9.x core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php
  3. 10 core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php

Namespace

Drupal\form_test

File

core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php

View source
<?php

declare (strict_types=1);
namespace Drupal\form_test;

use Drupal\Core\Url;

/**
 * Provides a test confirmation form with a complex cancellation destination.
 *
 * @internal
 */
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().');
    }

}

Classes

Title Deprecated Summary
ConfirmFormArrayPathTestForm Provides a test confirmation form with a complex cancellation destination.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.