Namespace
Drupal\action_bulk_test\Form
File
core/modules/views/tests/modules/action_bulk_test/src/Form/TestActionConfirmForm.php
View source
<?php
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;
class TestActionConfirmForm extends ConfirmFormBase {
public function getFormId() : string {
return 'test_action_confirm_form';
}
public function getCancelUrl() : Url {
return Url::fromRoute('<front>');
}
public function getQuestion() : MarkupInterface {
return $this
->t('Do you agree?');
}
public function submitForm(array &$form, FormStateInterface $form_state) : void {
}
}
Classes