css_disable_transitions_test.module in Drupal 10
Helper module for disabling animations in tests.
File
core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.moduleView 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
Name | Description |
---|---|
css_disable_transitions_test_page_attachments | Implements hook_page_attachments(). |