You are here

abstract protected function AssetOptimizer::addDnsPrefetch in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.3 src/Asset/AssetOptimizer.php \Drupal\advagg\Asset\AssetOptimizer::addDnsPrefetch()

Extract any domains to prefetch DNS.

Parameters

array $asset: A core asset definition array.

Return value

array An array of domains to prefetch.

1 call to AssetOptimizer::addDnsPrefetch()
AssetOptimizer::scanFile in src/Asset/AssetOptimizer.php
Given a filename calculate various hashes, gather meta data then optimize.
2 methods override AssetOptimizer::addDnsPrefetch()
CssOptimizer::addDnsPrefetch in src/Asset/CssOptimizer.php
Extract any domains to prefetch DNS.
JsOptimizer::addDnsPrefetch in src/Asset/JsOptimizer.php
Extract any domains to prefetch DNS.

File

src/Asset/AssetOptimizer.php, line 388

Class

AssetOptimizer
Defines the base AdvAgg optimizer.

Namespace

Drupal\advagg\Asset

Code

protected abstract function addDnsPrefetch(array $asset);