public static function CssUtils::extractImports

Extracts all references from the supplied CSS content.

Parameters

string $content The CSS content:

Return value

array An array of unique URLs

1 call to CssUtils::extractImports()
SassFilter::getChildren in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Filter/Sass/SassFilter.php
Returns child assets.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Util/CssUtils.php, line 100

Class

CssUtils
CSS Utils.

Namespace

Assetic\Util

Code

public static function extractImports($content) {
  $imports = array();
  static::filterImports($content, function ($matches) use (&$imports) {
    $imports[] = $matches['url'];
  });
  return array_unique($imports);
}