3 namespace Drupal\form_test\Form;
5 use Drupal\Core\Form\FormBase;
6 use Drupal\Core\Form\FormStateInterface;
9 * Form builder for testing hook_form_alter() and hook_form_FORM_ID_alter().
11 class FormTestAlterForm extends FormBase {
16 public function getFormId() {
17 return 'form_test_alter_form';
23 public function buildForm(array $form, FormStateInterface $form_state) {
24 // Elements can be added as needed for future testing needs, but for now,
25 // we're only testing alter hooks that do not require any elements added by
33 public function submitForm(array &$form, FormStateInterface $form_state) {