8ffbc52f5ed02fe709c97e370127d860189ed322
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / Form / FormTestAlterForm.php
1 <?php
2
3 namespace Drupal\form_test\Form;
4
5 use Drupal\Core\Form\FormBase;
6 use Drupal\Core\Form\FormStateInterface;
7
8 /**
9  * Form builder for testing hook_form_alter() and hook_form_FORM_ID_alter().
10  *
11  * @internal
12  */
13 class FormTestAlterForm extends FormBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   public function getFormId() {
19     return 'form_test_alter_form';
20   }
21
22   /**
23    * {@inheritdoc}
24    */
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
28     // this function.
29     return $form;
30   }
31
32   /**
33    * {@inheritdoc}
34    */
35   public function submitForm(array &$form, FormStateInterface $form_state) {
36   }
37
38 }