<?php

/**
 * @file
 * Hook implementations for the Sobki Assets module.
 */

declare(strict_types=1);

use Drupal\sobki_assets\HookHandler\LibraryInfoAlter;

/**
 * Implements hook_library_info_alter().
 */
function sobki_assets_library_info_alter(array &$libraries, string $extension): void {
  /** @var \Drupal\sobki_assets\HookHandler\LibraryInfoAlter $instance */
  $instance = \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(LibraryInfoAlter::class);
  $instance->alter($libraries, $extension);
}
