class ConfirmFormArrayPathTestForm
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php \Drupal\form_test\ConfirmFormArrayPathTestForm
- 10 core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php \Drupal\form_test\ConfirmFormArrayPathTestForm
- 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
- class \Drupal\Core\Form\FormBase implements \Drupal\Core\Form\FormInterface, \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Core\Form\ConfirmFormBase implements \Drupal\Core\Form\ConfirmFormInterface extends \Drupal\Core\Form\FormBase
- class \Drupal\form_test\ConfirmFormTestForm extends \Drupal\Core\Form\ConfirmFormBase
- class \Drupal\form_test\ConfirmFormArrayPathTestForm extends \Drupal\form_test\ConfirmFormTestForm
- class \Drupal\form_test\ConfirmFormTestForm extends \Drupal\Core\Form\ConfirmFormBase
- class \Drupal\Core\Form\ConfirmFormBase implements \Drupal\Core\Form\ConfirmFormInterface extends \Drupal\Core\Form\FormBase
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_testView 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.