public function MediaDeleteForm::closeModalAjax in Media Directories 3.x
Same name and namespace in other branches
- 8 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
File
- modules/
media_directories_ui/ src/ Form/ MediaDeleteForm.php, line 109
Class
Namespace
Drupal\media_directories_ui\FormCode
public function closeModalAjax() {
$response = new AjaxResponse();
$response
->addCommand(new CloseModalDialogCommand());
return $response;
}