public function AjaxTestController::dialogClose in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php \Drupal\ajax_test\Controller\AjaxTestController::dialogClose()
Returns an AjaxResponse with command to close dialog.
Return value
\Drupal\Core\Ajax\AjaxResponse The JSON response object.
1 string reference to 'AjaxTestController::dialogClose'
- ajax_test.routing.yml in core/
modules/ system/ tests/ modules/ ajax_test/ ajax_test.routing.yml - core/modules/system/tests/modules/ajax_test/ajax_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ ajax_test/ src/ Controller/ AjaxTestController.php, line 205 - Contains \Drupal\ajax_test\Controller\AjaxTestController.
Class
- AjaxTestController
- Provides content for dialog tests.
Namespace
Drupal\ajax_test\ControllerCode
public function dialogClose() {
$response = new AjaxResponse();
$response
->addCommand(new CloseDialogCommand('#ajax-test-dialog-wrapper-1'));
return $response;
}