public function EntityCollection::toArray in JSON:API 8
Returns the collection as an array.
Return value
\Drupal\Core\Entity\EntityInterface[] The array of entities.
File
- src/
Resource/ EntityCollection.php, line 92
Class
- EntityCollection
- Wrapper to normalize collections with multiple entities.
Namespace
Drupal\jsonapi\ResourceCode
public function toArray() {
return $this->entities;
}