settings_tray_test_css.module

Same filename in other branches
  1. 9 core/modules/settings_tray/tests/modules/settings_tray_test_css/settings_tray_test_css.module
  2. 8.9.x core/modules/settings_tray/tests/modules/settings_tray_test_css/settings_tray_test_css.module
  3. 10 core/modules/settings_tray/tests/modules/settings_tray_test_css/settings_tray_test_css.module

File

core/modules/settings_tray/tests/modules/settings_tray_test_css/settings_tray_test_css.module

View source
<?php


/**
 * @file
 * Module for attaching CSS during tests.
 *
 * CSS pointer-events properties cause testing errors.
 */
declare (strict_types=1);

/**
 * 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

Title Deprecated Summary
settings_tray_test_css_page_attachments Implements hook_page_attachments().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.