JsTestingAjaxRequestTestHooks.php
Namespace
Drupal\js_testing_ajax_request_test\HookFile
-
core/
modules/ system/ tests/ modules/ js_testing_ajax_request_test/ src/ Hook/ JsTestingAjaxRequestTestHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\js_testing_ajax_request_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for js_testing_ajax_request_test.
*/
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';
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
JsTestingAjaxRequestTestHooks | Hook implementations for js_testing_ajax_request_test. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.