js_testing_ajax_request_test.module
Same filename in other branches
File
-
core/
modules/ system/ tests/ modules/ js_testing_ajax_request_test/ js_testing_ajax_request_test.module
View source
<?php
/**
* @file
* Helper module for the JavaScript AJAX request tests.
*/
declare (strict_types=1);
/**
* Implements hook_page_attachments().
*/
function js_testing_ajax_request_test_page_attachments(array &$attachments) {
// Unconditionally attach an asset to the page.
$attachments['#attached']['library'][] = 'js_testing_ajax_request_test/track_ajax_requests';
}
Functions
Title | Deprecated | Summary |
---|---|---|
js_testing_ajax_request_test_page_attachments | Implements hook_page_attachments(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.