You are here

public function AmpCssCollectionRenderer::format in Accelerated Mobile Pages (AMP) 8.3

Format values consistently.

Parameters

string $value: The number to minify.

Return value

string The formatted number.

1 call to AmpCssCollectionRenderer::format()
AmpCssCollectionRenderer::render in src/Asset/AmpCssCollectionRenderer.php
Renders an asset collection.

File

src/Asset/AmpCssCollectionRenderer.php, line 295

Class

AmpCssCollectionRenderer
Renders CSS assets.

Namespace

Drupal\amp\Asset

Code

public function format($value) {
  return number_format($value, 0);
}