You are here

private function CSSmin::registerPreservedToken in Advanced CSS/JS Aggregation 7.2

Registers a preserved token

Parameters

$token:

Return value

string The token ID string

5 calls to CSSmin::registerPreservedToken()
CSSmin::minify in advagg_css_compress/yui/CSSMin.inc
Minifies the given input CSS string
CSSmin::processCalc in advagg_css_compress/yui/CSSMin.inc
CSSmin::processDataUrls in advagg_css_compress/yui/CSSMin.inc
Searches & replaces all data urls with tokens before we start compressing, to avoid performance issues running some of the subsequent regexes against large string chunks.
CSSmin::processOldIeSpecificMatrixDefinition in advagg_css_compress/yui/CSSMin.inc
CSSmin::processStrings in advagg_css_compress/yui/CSSMin.inc

File

advagg_css_compress/yui/CSSMin.inc, line 249

Class

CSSmin

Code

private function registerPreservedToken($token) {
  $this->preservedTokens[] = $token;
  return self::TOKEN . (count($this->preservedTokens) - 1) . '___';
}