You are here

protected function MobileDeviceDetectionObject::setCloudHeaders in Mobile Device Detection 8

2 calls to MobileDeviceDetectionObject::setCloudHeaders()
MobileDeviceDetectionObject::check in src/Object/MobileDeviceDetectionObject.php
MobileDeviceDetectionObject::init in src/Object/MobileDeviceDetectionObject.php

File

src/Object/MobileDeviceDetectionObject.php, line 130

Class

MobileDeviceDetectionObject

Namespace

Drupal\mobile_device_detection\Object

Code

protected function setCloudHeaders($headers) {
  array_walk($headers, function (&$v, $k) {
    if (substr(strtolower($k), 0, 16) === 'http_cloudfront_') {
      $this->cloud_headers[strtoupper($k)] = $v;
    }
  });
}