class JsTestingAjaxRequestTestHooks

Hook implementations for js_testing_ajax_request_test.

Hierarchy

Expanded class hierarchy of JsTestingAjaxRequestTestHooks

File

core/modules/system/tests/modules/js_testing_ajax_request_test/src/Hook/JsTestingAjaxRequestTestHooks.php, line 12

Namespace

Drupal\js_testing_ajax_request_test\Hook
View source
class JsTestingAjaxRequestTestHooks {
    
    /**
     * Implements hook_page_attachments().
     */
    public function pageAttachments(array &$attachments) {
        // Unconditionally attach an asset to the page.
        $attachments['#attached']['library'][] = 'js_testing_ajax_request_test/track_ajax_requests';
    }

}

Members

Title Sort descending Modifiers Object type Summary
JsTestingAjaxRequestTestHooks::pageAttachments public function Implements hook_page_attachments().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.