public function FieldInheritanceForm::updateFieldOptions in Field Inheritance 8
Same name and namespace in other branches
- 2.0.x src/Form/FieldInheritanceForm.php \Drupal\field_inheritance\Form\FieldInheritanceForm::updateFieldOptions()
AJAX Callback: Update Field Options.
File
- src/
Form/ FieldInheritanceForm.php, line 508
Class
- FieldInheritanceForm
- Provides a form for managing field inheritance entities.
Namespace
Drupal\field_inheritance\FormCode
public function updateFieldOptions(array &$form, FormStateInterface $form_state) {
$form_state
->setRebuild();
$response = new AjaxResponse();
$response
->addCommand(new HtmlCommand('#field-inheritance-add-form--wrapper', $form));
return $response;
}