public function MappingEditForm::getMappingTable in GatherContent 8.3
Ajax callback for mapping multistep form.
@inheritdoc
Return value
array Array of form elements.
File
- src/
Form/ MappingEditForm.php, line 673
Class
- MappingEditForm
- Class MappingEditForm.
Namespace
Drupal\gathercontent\FormCode
public function getMappingTable(array &$form, FormStateInterface $form_state) {
$this->contentType = $form_state
->getValue('content_type');
$fields = $this
->getAllEntityReferenceFields();
$form['mapping']['#attached']['drupalSettings']['gathercontent'] = empty($fields) ? NULL : $fields;
$form_state
->setRebuild(TRUE);
return $form['mapping'];
}