class SettingsTrayTestCssHooks

Hook implementations for settings_tray_test_css.

Hierarchy

Expanded class hierarchy of SettingsTrayTestCssHooks

File

core/modules/settings_tray/tests/modules/settings_tray_test_css/src/Hook/SettingsTrayTestCssHooks.php, line 12

Namespace

Drupal\settings_tray_test_css\Hook
View source
class SettingsTrayTestCssHooks {
    
    /**
     * Implements hook_page_attachments().
     */
    public function pageAttachments(array &$attachments) : void {
        // Unconditionally attach an asset to the page.
        $attachments['#attached']['library'][] = 'settings_tray_test_css/drupal.css_fix';
    }

}

Members

Title Sort descending Modifiers Object type Summary
SettingsTrayTestCssHooks::pageAttachments public function Implements hook_page_attachments().

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