function css_disable_transitions_test_page_attachments

Same name in other branches
  1. 9 core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module \css_disable_transitions_test_page_attachments()
  2. 10 core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module \css_disable_transitions_test_page_attachments()
  3. 11.x core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module \css_disable_transitions_test_page_attachments()

Implements hook_page_attachments().

File

core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module, line 11

Code

function css_disable_transitions_test_page_attachments(array &$attachments) {
    // Unconditionally attach an asset to the page.
    $attachments['#attached']['library'][] = 'css_disable_transitions_test/testing.css_disable_transitions_test';
}

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