Neos\Flow\Persistence\Generic\Backend\BackendInterface::getObjectCountByQuery PHP Method

getObjectCountByQuery() public method

Returns the number of items matching the query.
public getObjectCountByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : integer
$query Neos\Flow\Persistence\QueryInterface
return integer
    public function getObjectCountByQuery(QueryInterface $query);

Usage Example

Beispiel #1
0
 /**
  * Returns the number of records matching the query.
  *
  * @param QueryInterface $query
  * @return integer
  * @api
  */
 public function getObjectCountByQuery(QueryInterface $query)
 {
     return $this->backend->getObjectCountByQuery($query);
 }