css_disable_transitions_test.module
Same filename in other branches
- 9 core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module
- 8.9.x core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module
- 10 core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module
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.
*/
declare (strict_types=1);
/**
* 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.