class ConfirmFormArrayPathTestForm

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php \Drupal\form_test\ConfirmFormArrayPathTestForm
  2. 10 core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php \Drupal\form_test\ConfirmFormArrayPathTestForm
  3. 8.9.x core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php \Drupal\form_test\ConfirmFormArrayPathTestForm

Provides a test confirmation form with a complex cancellation destination.

@internal

Hierarchy

Expanded class hierarchy of ConfirmFormArrayPathTestForm

1 string reference to 'ConfirmFormArrayPathTestForm'
form_test.routing.yml in core/modules/system/tests/modules/form_test/form_test.routing.yml
core/modules/system/tests/modules/form_test/form_test.routing.yml

File

core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php, line 12

Namespace

Drupal\form_test
View source
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().');
  }

}

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