You are here

FormTestTableSelectEmptyForm.php in Zircon Profile 8.0

File

core/modules/system/tests/modules/form_test/src/Form/FormTestTableSelectEmptyForm.php
View source
<?php

/**
 * @file
 * Contains \Drupal\form_test\Form\FormTestTableSelectEmptyForm.
 */
namespace Drupal\form_test\Form;

use Drupal\Core\Form\FormStateInterface;
class FormTestTableSelectEmptyForm extends FormTestTableSelectFormBase {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return '_form_test_tableselect_empty_form';
  }

  /**
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state) {
    return $this
      ->tableselectFormBuilder($form, $form_state, array(
      '#options' => array(),
    ));
  }

  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
  }

}

Classes