You are here

public function S3fsAdvAggSubscriber::updateUrls in S3 File System 8.3

Same name and namespace in other branches
  1. 4.0.x src/EventSubscriber/S3fsAdvAggSubscriber.php \Drupal\s3fs\EventSubscriber\S3fsAdvAggSubscriber::updateUrls()

Update asset urls to access static files that they aren't in S3 bucket.

Parameters

\Drupal\advagg\Asset\AssetOptimizationEvent $asset: The asset optimization event.

File

src/EventSubscriber/S3fsAdvAggSubscriber.php, line 52

Class

S3fsAdvAggSubscriber
Subscribe to asset optimization events and update assets urls.

Namespace

Drupal\s3fs\EventSubscriber

Code

public function updateUrls(AssetOptimizationEvent $asset) {
  $content = $this
    ->processAssetContent($asset);
  $asset
    ->setContent($content);
}