settings_tray_test_css.module in Drupal 8
Same filename and directory in other branches
Module for attaching CSS during tests.
CSS pointer-events properties cause testing errors.
File
core/modules/settings_tray/tests/modules/settings_tray_test_css/settings_tray_test_css.moduleView source
<?php
/**
 * @file
 * Module for attaching CSS during tests.
 *
 * CSS pointer-events properties cause testing errors.
 */
/**
 * Implements hook_page_attachments().
 */
function settings_tray_test_css_page_attachments(array &$attachments) {
  // Unconditionally attach an asset to the page.
  $attachments['#attached']['library'][] = 'settings_tray_test_css/drupal.css_fix';
}Functions
| 
            Name | 
                  Description | 
|---|---|
| settings_tray_test_css_page_attachments | Implements hook_page_attachments(). |