function AjaxTestFocusFirstForm::selectorHasNothingTabbable
Same name in other branches
- 9 core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestFocusFirstForm.php \Drupal\ajax_test\Form\AjaxTestFocusFirstForm::selectorHasNothingTabbable()
- 11.x core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestFocusFirstForm.php \Drupal\ajax_test\Form\AjaxTestFocusFirstForm::selectorHasNothingTabbable()
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 165
Class
- AjaxTestFocusFirstForm
- Form for testing AJAX FocusFirstCommand.
Namespace
Drupal\ajax_test\FormCode
public function selectorHasNothingTabbable() {
$response = new AjaxResponse();
return $response->addCommand(new FocusFirstCommand('#nothing-tabbable'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.