Zend\Navigation\Page\AbstractPage::setRev
Sets the page's reverse links to other pages
This method expects an associative array of reverse 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 setRev([array|Traversable
$relations = null] )
Parameters
$relations
— object- [optional] an associative array of
reverse links to other pages
Returns
- AbstractPage
- fluent interface, returns self
Errors/Exceptions
-
InvalidArgumentException
- if $relations it not an array