7b60343b74d9d668a77e152a839488b08b28c8c3
[yaffs-website] / web / core / modules / page_cache / tests / modules / src / Form / TestForm.php
1 <?php
2
3 namespace Drupal\page_cache_form_test\Form;
4
5 use Drupal\Core\Form\FormBase;
6 use Drupal\Core\Form\FormStateInterface;
7
8 class TestForm extends FormBase {
9
10   /**
11    * {@inheritdoc}
12    */
13   public function getFormId() {
14     return 'page_cache_form_test';
15   }
16
17   /**
18    * {@inheritdoc}
19    */
20   public function buildForm(array $form, FormStateInterface $form_state) {
21     $form['#prefix'] = '<p>Llamas are awesome, but kittens are pretty cool too!</p>';
22     return $form;
23   }
24
25   /**
26    * {@inheritdoc}
27    */
28   public function submitForm(array &$form, FormStateInterface $form_state) { }
29
30 }