protected function SchemaFormBuilder::processSchema in Migrate API 8
Same name and namespace in other branches
- 8.2 src/SchemaFormBuilder.php \Drupal\migrate_api\SchemaFormBuilder::processSchema()
Process a tree or subtree of a schema plugin definition.
Parameters
array|object $schema: A schema plugin array definition or ArrayAccess implementing object.
string $context: The key for the form subtree currently being built.
array $form: The form or form subtree to attach elements to.
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the form the subtree is attached to, for AJAX reasons.
4 calls to SchemaFormBuilder::processSchema()
- SchemaFormBuilder::getFormArray in src/
SchemaFormBuilder.php - Get a form from a schema plugin id.
- SchemaFormBuilder::mappingHandler in src/
SchemaFormBuilder.php - Handle building a form when a mapping is encountered.
- SchemaFormBuilder::sequenceHandler in src/
SchemaFormBuilder.php - Handle building a form when a sequence is encountered.
- SchemaFormBuilder::typeHandler in src/
SchemaFormBuilder.php - Handle building a form when something has a "type".
File
- src/
SchemaFormBuilder.php, line 103 - Contains \Drupal\migrate_api\SchemaFormBuilder.
Class
- SchemaFormBuilder
- Builds forms from schema.
Namespace
Drupal\migrate_apiCode
protected function processSchema($schema, $context, &$form, FormStateInterface $form_state) {
foreach ($this->schemaKeyHandlers as $schema_key => $schema_handler) {
if (isset($schema[$schema_key])) {
static::$schema_handler($schema, $context, $form, $form_state);
}
}
}