function MediaTypeForm::ajaxHandlerData
Ajax callback triggered by the type provider select element.
File
-
core/
modules/ media/ src/ MediaTypeForm.php, line 76
Class
- MediaTypeForm
- Form controller for media type forms.
Namespace
Drupal\mediaCode
public function ajaxHandlerData(array $form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$response->addCommand(new ReplaceCommand('#source-dependent', $form['source_dependent']));
return $response;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.