protected function MobileDeviceDetection::setCloudHeaders in Mobile Device Detection 8.2
Same name and namespace in other branches
- 8.3 src/Object/MobileDeviceDetection.php \Drupal\mobile_device_detection\Object\MobileDeviceDetection::setCloudHeaders()
2 calls to MobileDeviceDetection::setCloudHeaders()
- MobileDeviceDetection::check in src/
Object/ MobileDeviceDetection.php - MobileDeviceDetection::init in src/
Object/ MobileDeviceDetection.php
File
- src/
Object/ MobileDeviceDetection.php, line 132
Class
- MobileDeviceDetection
- MobileDeviceDetection object.
Namespace
Drupal\mobile_device_detection\ObjectCode
protected function setCloudHeaders($headers) {
array_walk($headers, function (&$v, $k) {
if (substr(strtolower($k), 0, 16) === 'http_cloudfront_') {
$this->cloudHeaders[strtoupper($k)] = $v;
}
});
}