function AjaxTestController::order
Returns an AjaxResponse; settings command set last.
Helps verifying AjaxResponse reorders commands to ensure correct execution.
1 string reference to 'AjaxTestController::order'
- 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 173 
Class
- AjaxTestController
- Provides content for dialog tests.
Namespace
Drupal\ajax_test\ControllerCode
public function order() {
  $response = new AjaxResponse();
  // HTML insertion command.
  $response->addCommand(new HtmlCommand('body', 'Hello, world!'));
  $build['#attached']['library'][] = 'ajax_test/order';
  $response->setAttachments($build['#attached']);
  return $response;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
