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