Translate/Method/Languages.php
protected function process(array $options)
    {
        $event = $this->startProfiling($this->getName(), 'get');

        $response = $this->getClient()->get($this->url, ['query' => $options]);
        $json = json_decode($response->getBody()->getContents(), true);

        $result = isset($json['data']['languages']) ? $json['data']['languages'] : [];

        $this->stopProfiling($event, $this->getName(), $result);

        return $result;
    }
protected function process(array $options)
    {
        $event = $this->startProfiling($this->getName(), 'get');

        $response = $this->getClient()->get($this->url, ['query' => $options]);
        $json = json_decode($response->getBody()->getContents(), true);

        $result = isset($json['data']['languages']) ? $json['data']['languages'] : [];

        $this->stopProfiling($event, $this->getName(), $result);

        return $result;
    }
protected function process ( array $ options ) { $ event = $ this -> startProfiling ( $ this -> getName ( ) , 'get' ) ; $ response = $ this -> getClient ( ) -> get ( $ this -> url , [ 'query' => $ options ] ) ; $ json = json_decode ( $ response -> getBody ( ) -> getContents ( ) , true ) ; $ result = isset ( $ json [ 'data' ] [ 'languages' ] ) ? $ json [ 'data' ] [ 'languages' ] : [ ] ; $ this -> stopProfiling ( $ event , $ this -> getName ( ) , $ result ) ; return $ result ; }
Process request and retrieve JSON result.

@param array $options

@return array
Process request and retrieve JSON result .