You are here

interface SchemaFormBuilderInterface in Migrate API 8

Same name and namespace in other branches
  1. 8.2 src/SchemaFormBuilderInterface.php \Drupal\migrate_api\SchemaFormBuilderInterface

Builds forms from schema plugin ids.

Hierarchy

Expanded class hierarchy of SchemaFormBuilderInterface

All classes that implement SchemaFormBuilderInterface

File

src/SchemaFormBuilderInterface.php, line 15
Contains \Drupal\migrate_api\SchemaFormBuilderInterface.

Namespace

Drupal\migrate_api
View source
interface SchemaFormBuilderInterface {

  /**
   * They key for the root of the form.
   */
  const ROOT_CONTEXT_KEY = 'root';

  /**
   * Get a form from a schema plugin id.
   *
   * @param string $schema_plugin_id
   *   The schema plugin id.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state the form will become a part of.
   *
   * @return array
   *   Form elements.
   */
  public function getFormArray($schema_plugin_id, FormStateInterface $form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
SchemaFormBuilderInterface::getFormArray public function Get a form from a schema plugin id. 1
SchemaFormBuilderInterface::ROOT_CONTEXT_KEY constant They key for the root of the form.