Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / Form / FormTestTableSelectEmptyForm.php
1 <?php
2
3 namespace Drupal\form_test\Form;
4
5 use Drupal\Core\Form\FormStateInterface;
6
7 /**
8  * Builds a form to test table select with '#options' set to empty.
9  *
10  * @internal
11  */
12 class FormTestTableSelectEmptyForm extends FormTestTableSelectFormBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function getFormId() {
18     return '_form_test_tableselect_empty_form';
19   }
20
21   /**
22    * {@inheritdoc}
23    */
24   public function buildForm(array $form, FormStateInterface $form_state) {
25     return $this->tableselectFormBuilder($form, $form_state, ['#options' => []]);
26   }
27
28   /**
29    * {@inheritdoc}
30    */
31   public function submitForm(array &$form, FormStateInterface $form_state) {
32   }
33
34 }