FOFHalLinks::addLink
Add a single link to the links collection
Signature
public function addLink(string
$rel,
[FOFHalLink
$link = true,
[boolean
$overwrite = true]] )
Parameters
-
$rel
- The relation of the link to the document. See RFC 5988
-
$link
- The actual link object
-
$overwrite
- When false and a link of $rel relation exists, an array of
Returns
- boolean
- True if the link was added to the collection