public function MediaDeleteForm::closeModalAjax in Media Directories 8
Same name and namespace in other branches
- 3.x modules/media_directories_ui/src/Form/MediaDeleteForm.php \Drupal\media_directories_ui\Form\MediaDeleteForm::closeModalAjax()
- 2.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;
}