public function AjaxTestFocusFirstForm::focusableContainerNotTabbableChildren in Drupal 9
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 176 
Class
- AjaxTestFocusFirstForm
- Form for testing AJAX FocusFirstCommand.
Namespace
Drupal\ajax_test\FormCode
public function focusableContainerNotTabbableChildren() {
  $response = new AjaxResponse();
  return $response
    ->addCommand(new FocusFirstCommand('#focusable-container-without-tabbable-children'));
}