Zend\Navigation\Page\AbstractPage::setRel
Sets the page's forward links to other pages
This method expects an associative array of forward links to other pages, where each element's key is the name of the relation (e.g. alternate, prev, next, help, etc), and the value is a mixed value that could somehow be considered a page.
Signature
public function setRel([array|Traversable
$relations = null] )
Parameters
$relations
— object- [optional] an associative array of
forward links to other pages
Returns
- AbstractPage
- fluent interface, returns self
Errors/Exceptions
-
InvalidArgumentException
- if $relations is not an array