sobki_profile_dsfr-10.0.0-alpha2/modules/sobki_assets/sobki_assets.module
modules/sobki_assets/sobki_assets.module
<?php
/**
* @file
* Hook implementations for the Sobki Assets module.
*/
declare(strict_types=1);
use Drupal\sobki_assets\HookHandler\PageAttachments;
/**
* Implements hook_page_attachments().
*/
function sobki_assets_page_attachments(array &$attachments): void {
/** @var \Drupal\sobki_assets\HookHandler\PageAttachments $instance */
$instance = \Drupal::service('class_resolver')
->getInstanceFromDefinition(PageAttachments::class);
$instance->attach($attachments);
}
