public function DataProviderEntity::count in RESTful 7.2
Counts the total results for the index call.
Return value
int The total number of results for the index call.
Overrides CrudInterface::count
File
- src/
Plugin/ resource/ DataProvider/ DataProviderEntity.php, line 189 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.
Class
- DataProviderEntity
- Class DataProviderEntity.
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function count() {
$query = $this
->getQueryCount();
return intval($query
->execute());
}