You are here

ConfirmFormArrayPathTestForm.php in Zircon Profile 8

Namespace

Drupal\form_test

File

core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php
View source
<?php

/**
 * @file
 * Contains \Drupal\form_test\ConfirmFormArrayPathTestForm.
 */
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', array(), array(
      'query' => array(
        'destination' => 'admin/config',
      ),
    ));
  }

  /**
   * {@inheritdoc}
   */
  public function getCancelText() {
    return $this
      ->t('ConfirmFormArrayPathTestForm::getCancelText().');
  }

}

Classes

Namesort descending Description
ConfirmFormArrayPathTestForm Provides a test confirmation form with a complex cancellation destination.