You are here

css_disable_transitions_test.module in Drupal 8

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';
}