class CssDisableTransitionsTestHooks
Hook implementations for css_disable_transitions_test.
Hierarchy
- class \Drupal\css_disable_transitions_test\Hook\CssDisableTransitionsTestHooks
Expanded class hierarchy of CssDisableTransitionsTestHooks
File
-
core/
modules/ system/ tests/ modules/ css_disable_transitions_test/ src/ Hook/ CssDisableTransitionsTestHooks.php, line 12
Namespace
Drupal\css_disable_transitions_test\HookView source
class CssDisableTransitionsTestHooks {
/**
* Implements hook_page_attachments().
*/
public function pageAttachments(array &$attachments) {
// Unconditionally attach an asset to the page.
$attachments['#attached']['library'][] = 'css_disable_transitions_test/testing.css_disable_transitions_test';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
CssDisableTransitionsTestHooks::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.