You are here

function asset_injector_css_alter in Asset Injector 8

Same name and namespace in other branches
  1. 8.2 asset_injector.module \asset_injector_css_alter()

Implements hook_css_alter().

File

./asset_injector.module, line 53
Contains module asset_injector.

Code

function asset_injector_css_alter(array &$css, AttachedAssetsInterface $assets) {
  foreach ($css as $key => &$item) {
    if (strpos($key, 'asset_injector') !== FALSE) {
      $item['group'] = 999;
    }
  }
}