Filters all CSS imports through a callable.
string $content The CSS:
callable $callback A PHP callable:
integer $limit Limit the number of replacements:
integer $count Will be populated with the count:
Boolean $includeUrl Whether to include url() in the pattern:
string The filtered CSS
public static function filterImports($content, $callback, $limit = -1, &$count = 0, $includeUrl = true) {
$pattern = $includeUrl ? static::REGEX_IMPORTS : static::REGEX_IMPORTS_NO_URLS;
return preg_replace_callback($pattern, $callback, $content, $limit, $count);
}