public function MediaDeleteForm::closeModalAjax in Media Directories 2.x
Same name and namespace in other branches
- 8 modules/media_directories_ui/src/Form/MediaDeleteForm.php \Drupal\media_directories_ui\Form\MediaDeleteForm::closeModalAjax()
- 3.x modules/media_directories_ui/src/Form/MediaDeleteForm.php \Drupal\media_directories_ui\Form\MediaDeleteForm::closeModalAjax()
Close modal dialog.
Return value
\Drupal\Core\Ajax\AjaxResponse An AJAX response.
File
- modules/
media_directories_ui/ src/ Form/ MediaDeleteForm.php, line 126
Class
- MediaDeleteForm
- A form to delete medias.
Namespace
Drupal\media_directories_ui\FormCode
public function closeModalAjax() {
$response = new AjaxResponse();
$response
->addCommand(new CloseModalDialogCommand());
return $response;
}