3 namespace Drupal\form_test\Form;
5 use Drupal\Core\Form\FormBase;
6 use Drupal\Core\Form\FormStateInterface;
9 * Builds a form to test select elements when #options is not an array.
11 class FormTestEmptySelectForm extends FormBase {
16 public function getFormId() {
17 return 'form_test_empty_select';
23 public function buildForm(array $form, FormStateInterface $form_state) {
24 $form['empty_select'] = [
26 '#title' => t('Empty Select'),
36 public function submitForm(array &$form, FormStateInterface $form_state) {