public function AjaxTestFocusFirstForm::selectorDoesNotExist in Drupal 10
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestFocusFirstForm.php \Drupal\ajax_test\Form\AjaxTestFocusFirstForm::selectorDoesNotExist()
Callback for testing FocusFirstCommand on a container.
Return value
\Drupal\Core\Ajax\AjaxResponse The AJAX response.
File
- core/
modules/ system/ tests/ modules/ ajax_test/ src/ Form/ AjaxTestFocusFirstForm.php, line 154
Class
- AjaxTestFocusFirstForm
- Form for testing AJAX FocusFirstCommand.
Namespace
Drupal\ajax_test\FormCode
public function selectorDoesNotExist() {
$response = new AjaxResponse();
return $response
->addCommand(new FocusFirstCommand('#selector-does-not-exist'));
}