public static function CssUtils::filterUrls

Filters all CSS url()'s through a callable.

Parameters

string $content The CSS:

callable $callback A PHP callable:

integer $limit Limit the number of replacements:

integer $count Will be populated with the count:

Return value

string The filtered CSS

2 calls to CssUtils::filterUrls()
BaseCssFilter::filterUrls in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Filter/BaseCssFilter.php
CssUtils::filterReferences in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Util/CssUtils.php
Filters all references -- url() and "@import" -- through a callable.

File

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

Class

CssUtils
CSS Utils.

Namespace

Assetic\Util

Code

public static function filterUrls($content, $callback, $limit = -1, &$count = 0) {
  return preg_replace_callback(static::REGEX_URLS, $callback, $content, $limit, $count);
}