TestActionConfirmForm.php
Same filename in other branches
Namespace
Drupal\action_bulk_test\FormFile
-
core/
modules/ views/ tests/ modules/ action_bulk_test/ src/ Form/ TestActionConfirmForm.php
View source
<?php
declare (strict_types=1);
namespace Drupal\action_bulk_test\Form;
use Drupal\Component\Render\MarkupInterface;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
/**
* Confirmation form for 'test_action' action.
*/
class TestActionConfirmForm extends ConfirmFormBase {
/**
* {@inheritdoc}
*/
public function getFormId() : string {
return 'test_action_confirm_form';
}
/**
* {@inheritdoc}
*/
public function getCancelUrl() : Url {
return Url::fromRoute('<front>');
}
/**
* {@inheritdoc}
*/
public function getQuestion() : MarkupInterface {
return $this->t('Do you agree?');
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) : void {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
TestActionConfirmForm | Confirmation form for 'test_action' action. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.