Added
-
#4 adds the ability to force both links and embedded resources to be rendered as collections, even if the given relation only contains one item.
To force a link to be rendered as a collection, pass the attribute
__FORCE__COLLECTION__
with a boolean value oftrue
(or use the constantLink::AS_COLLECTION
to refer to the attribute name).To force an embedded resource to be rendered as a collection, pass a boolean
true
as the third argument toembed()
. Alternately, pass an array containing the single resource to any of the constructor,withElement()
, orembed()
.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.