function JsTestingLogTestHooks::pageAttachments

Implements hook_page_attachments().

File

core/modules/system/tests/modules/js_testing_log_test/src/Hook/JsTestingLogTestHooks.php, line 17

Class

JsTestingLogTestHooks
Hook implementations for js_testing_log_test.

Namespace

Drupal\js_testing_log_test\Hook

Code

public function pageAttachments(array &$attachments) : void {
    // Unconditionally attach an asset to the page.
    $attachments['#attached']['library'][] = 'js_testing_log_test/deprecation_log';
}

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