To get configuration

@param string $location

@return mixed
8523
public function config($location)
    {
        $keys = explode('.', $location);

        $filename = 'get' . strtoupper(array_shift($keys));

        $location = implode('.', $keys);

        if(empty($location)) {
            return $this->config->{$filename}();
        }

        return $this->config->{$filename}($location);
    }
858435
public function transform($location, array $options = [])
    {
        $this->options = array_merge($this->options, $options);
        if (!$this->request) {
            return null;
        }
        $path = str_replace('//', '/', $this->getBasePath()."/$location");
        $uri = (new CustomUri())->withPath($path);
        $uri = $this->updateOptions($uri);
        return $uri;
    }
531021
public function matchLocation(Location $location)
    {
        $contentType = $this->repository
            ->getContentTypeService()
            ->loadContentType($location->getContentInfo()->contentTypeId);

        return isset($this->values[$contentType->identifier]);
    }
1277675
protected function searchLocation($location)
	{
		$request = file_get_contents(
			sprintf(
				'https://maps.googleapis.com/maps/api/geocode/json?address=%s&sensor=false&key=%s',
				urlencode($location),
				$this->getKey()
			)
		);

		return json_decode($request);
	}
635787
public function getLocation()
    {

        if (! $apiKey = $this->getApiKey()) {
            return null;
        }

        $ip = $this->configHelper->getClientIp();

        // try getting location from cache
        $cacheIdentifier = md5(self::CACHE_PREFIX.$ip);
        $locationJson = $this->cache->load($cacheIdentifier);

        // if found return it
        if ($locationJson) {
            return $locationJson;
        }

        // otherwise call the API
        $locationJson = $this->getLocationJson($ip, $apiKey);

        // if no error cache it and return it
        if ($locationJson) {
            $this->cache->save($locationJson, $cacheIdentifier, [], 86400);
            return $locationJson;
        }

        return null;
    }
912770
public function addLocation(Location $location)
    {
        $this->locations->add($location);

        unset( $this->viewPathCache );
        $this->viewPathCache = [];

        return $this;
    }
625465
public function transform($location, array $options = [])
    {
        try {
            $path = $this->router
                ->getGenerator()
                ->generate($location, $this->getRouteArguments($options));
        } catch (RouteNotFound $caught) {
            return null;
        }
        $uri = (new CustomUri())->withPath($path);
        $uri = $this->updateOptions($uri);
        return $uri;
    }
344424
public function getLocation(): Location
    {
        if ($this->location === false && $this->_repository !== null) {
            $this->_repository->injectLocation($this);
        }

        return $this->location ?: null;
    }
1299528
public function offsetGet($position)
    {
        return isset($this->storage[$position]) ? $this->storage[$position] : null;
    }
1272607
private function getLocationCounter($location)
    {
        $locationHash = md5(implode(',', $location));
        if (!isset($this->seenCounter[$locationHash])) {
            $this->seenCounter[$locationHash] = 0;
        } else {
            $this->seenCounter[$locationHash]++;
        }
        return $this->seenCounter[$locationHash];
    }
236132
protected function getInstalledPackages(string $location) : array
    {
        if(isset($this->installedPackages[$location])){
            return $this->installedPackages[$location];
        }

        $installedFile = $location . 'installed.json';
        if(!file_exists($installedFile)){
            return [];
        }

        return $this->installedPackages[$location] = $this->loadJsonFile($installedFile);
    }
307779
function get($location, $asArray = FALSE )
    {
        $this->query($location);

        if ( $this->get_status_code() == 200 )
        {
            if ($asArray)
            {
                return preg_split("/\n/",$this->fetch_body());
            }

            return $this->fetch_body();
        }

        return FALSE;
    }
1274770
public function getToken(Location $location = null)
    {
        if (!$location) {
            return $this->token;
        }

        $repository = $this->em->getRepository('CampaignChainSecurityAuthenticationClientOAuthBundle:Token');
        $token = $repository->findOneByLocation($location);

        if (!$token) {
            throw new \Exception(
                'No token found for location '.$location->getId()
            );
        }

        return $token;
    }
510402
public function get($location)
    {
        curl_setopt($this->curl, CURLOPT_HTTPGET, true);

        return $this->execute('GET', $location);
    }
1317136
public function setLocation(Location $location = null)
    {
        $this->location = $location;

        $this->setStartDate(new \DateTime('now', new \DateTimeZone('UTC')));

        return $this;
    }
1134056
public function get($index)
    {
        if (!isset($this->config[$index])) {
            return null;
        }

        return $this->config[$index];
    }
897937
public static function getMenuNameByLocation($location)
    {
        if(!has_nav_menu($location)) return false;
        $menus = get_nav_menu_locations();
        $menuTitle = wp_get_nav_menu_object($menus[$location])->name;
        return $menuTitle;
    }