Pimcore\Tool\RestClient::getAssetCount PHP Метод

getAssetCount() публичный Метод

public getAssetCount ( null $condition = null, null $groupBy = null ) : mixed
$condition null
$groupBy null
Результат mixed
    public function getAssetCount($condition = null, $groupBy = null)
    {
        $params = $this->fillParms($condition, null, null, null, null, $groupBy, null);
        $response = (array) $this->doRequest($this->buildEndpointUrl("asset-count") . $params, "GET");
        if (!$response || !$response["success"]) {
            throw new Exception("Could not retrieve asset count");
        }
        return $response["data"]->totalCount;
    }