Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PageAttachmentsHook.php

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\Hook
View 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
RSS feed
Powered by Drupal