CssDisableTransitionsTestHooks.php
Namespace
Drupal\css_disable_transitions_test\HookFile
-
core/
modules/ system/ tests/ modules/ css_disable_transitions_test/ src/ Hook/ CssDisableTransitionsTestHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\css_disable_transitions_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for css_disable_transitions_test.
*/
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';
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
CssDisableTransitionsTestHooks | Hook implementations for css_disable_transitions_test. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.