Pantheon\Terminus\Collections\TerminusCollection::getCollectionData PHP Method

getCollectionData() protected method

Retrieves collection data from the API
protected getCollectionData ( array $options = [] ) : array
$options array params to pass to url request
return array
    protected function getCollectionData($options = [])
    {
        $args = array_merge(['options' => ['method' => 'get']], $this->args);
        if (isset($options['fetch_args'])) {
            $args = array_merge($args, $options['fetch_args']);
        }
        if ($this->paged) {
            $results = $this->request()->pagedRequest($this->getUrl(), $args);
        } else {
            $results = $this->request()->request($this->getUrl(), $args);
        }
        return $results['data'];
    }