class PageAttachmentsHook
Implements hook_page_attachments() for the system module.
Hierarchy
- class \Drupal\system\Hook\PageAttachmentsHook
Expanded class hierarchy of PageAttachmentsHook
File
-
core/
modules/ system/ src/ Hook/ PageAttachmentsHook.php, line 13
Namespace
Drupal\system\HookView source
final class PageAttachmentsHook {
public function __construct(BareHtmlPageRendererInterface $bareHtmlPageRenderer) {
}
/**
* Implements hook_page_attachments().
*
* @see template_preprocess_maintenance_page()
* @see \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter
*/
public function pageAttachments(array &$page) : void {
$this->bareHtmlPageRenderer
->systemPageAttachments($page);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
PageAttachmentsHook::pageAttachments | public | function | Implements hook_page_attachments(). |
PageAttachmentsHook::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.