Method |
Description |
|
collection ( string $resourceKey, array $data ) : array |
Serialize a collection. |
|
includedData ( League\Fractal\Resource\ResourceInterface $resource, array $data ) : array |
Serialize the included data. |
|
item ( string $resourceKey, array $data ) : array |
Serialize an item. |
|
mergeIncludes ( array $transformedData, array $includedData ) : array |
Merges any relations into the data. The 'data' field is also removed. |
|
meta ( array $meta ) : array |
Serialize the meta. |
|
null ( ) : array |
Serialize a null resource. |
|
paginator ( League\Fractal\Pagination\PaginatorInterface $paginator ) : array |
Serialize the paginator. |
|
sideloadIncludes ( ) : boolean |
Indicates if includes should be side-loaded. |
|