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().
13 class FormTestAlterForm extends FormBase {
18 public function getFormId() {
19 return 'form_test_alter_form';
25 public function buildForm(array $form, FormStateInterface $form_state) {
26 // Elements can be added as needed for future testing needs, but for now,
27 // we're only testing alter hooks that do not require any elements added by
35 public function submitForm(array &$form, FormStateInterface $form_state) {