private function getCookie($value, $basePath) { if ('mobile' !== $value) { $value = 'desktop'; } return new Cookie('TL_VIEW', $value, 0, $basePath); }