You are here

PrepareCallbackTestForm.php in Mobile Number 8

Same filename and directory in other branches
  1. 2.0.x src/Tests/PrepareCallbackTestForm.php

File

src/Tests/PrepareCallbackTestForm.php
View source
<?php

namespace Drupal\mobile_number\Tests;

use Drupal\Component\Utility\Crypt;
use Drupal\Core\Form\FormInterface;
use Drupal\Core\Form\FormStateInterface;

/**
 * A test form used for the prepareCallback() tests.
 */
class PrepareCallbackTestForm implements FormInterface {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return Crypt::randomBytesBase64();
  }

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

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

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

}

Classes

Namesort descending Description
PrepareCallbackTestForm A test form used for the prepareCallback() tests.