ApiPlatform\Core\DataProvider\CollectionDataProviderInterface::getCollection PHP Method

getCollection() public method

Retrieves a collection.
public getCollection ( string $resourceClass, string $operationName = null ) : array | ApiPlatform\Core\DataProvider\PaginatorInterface | Traversable
$resourceClass string
$operationName string
return array | ApiPlatform\Core\DataProvider\PaginatorInterface | Traversable
    public function getCollection(string $resourceClass, string $operationName = null);
CollectionDataProviderInterface