function AjaxTestController::globalEvents
Returns a page from which to test Ajax global events.
Return value
array The render array.
1 string reference to 'AjaxTestController::globalEvents'
- 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 363 
Class
- AjaxTestController
- Provides content for dialog tests.
Namespace
Drupal\ajax_test\ControllerCode
public function globalEvents() {
  return [
    '#attached' => [
      'library' => [
        'ajax_test/global_events',
      ],
    ],
    '#markup' => implode('', [
      '<div id="test_global_events_log"></div>',
      '<a id="test_global_events_drupal_ajax_link" class="use-ajax" href="' . Url::fromRoute('ajax_test.global_events_clear_log')->toString() . '">Drupal Ajax</a>',
      '<div id="test_global_events_log2"></div>',
    ]),
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
