css_disable_transitions_test.module

Same filename in other branches
  1. 9 core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module
  2. 8.9.x core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module
  3. 11.x core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module

Helper module for disabling animations in tests.

File

core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module

View source
<?php


/**
 * @file
 * Helper module for disabling animations in tests.
 */

/**
 * Implements hook_page_attachments().
 */
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';
}

Functions

Title Deprecated Summary
css_disable_transitions_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.