public function CdnSettings::getLookupTable in CDN 8.3
Returns the lookup table.
Return value
array A lookup table. Keys are lowercase file extensions or the asterisk. Values are CDN domains (either string if only one, or array of strings if multiple).
2 calls to CdnSettings::getLookupTable()
- CdnSettings::getCdnDomain in src/
CdnSettings.php - Maps a URI to a CDN domain.
- CdnSettings::getDomains in src/
CdnSettings.php - Returns all unique CDN domains that are configured.
File
- src/
CdnSettings.php, line 75
Class
- CdnSettings
- Wraps the CDN settings configuration, contains all parsing.
Namespace
Drupal\cdnCode
public function getLookupTable() : array {
if ($this->lookupTable === NULL) {
$this->lookupTable = $this
->buildLookupTable($this->rawSettings
->get('mapping'));
}
return $this->lookupTable;
}