function ContextualTestHooks::pageAttachmentsAlter
Same name and namespace in other branches
- 11.x core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php \Drupal\contextual_test\Hook\ContextualTestHooks::pageAttachmentsAlter()
Implements hook_page_attachments_alter().
Attributes
#[Hook('page_attachments_alter')]
File
-
core/
modules/ contextual/ tests/ modules/ contextual_test/ src/ Hook/ ContextualTestHooks.php, line 40
Class
- ContextualTestHooks
- Hook implementations for contextual_test.
Namespace
Drupal\contextual_test\HookCode
public function pageAttachmentsAlter(array &$attachments) : void {
$attachments['#attached']['library'][] = 'core/drupal.dialog.ajax';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.