public function EntityCollection::count in JSON:API 8
Returns the number of entities.
Return value
int The number of parameters
File
- src/
Resource/ EntityCollection.php, line 68
Class
- EntityCollection
- Wrapper to normalize collections with multiple entities.
Namespace
Drupal\jsonapi\ResourceCode
public function count() {
return count($this->entities);
}