Zend\View\Helper\Navigation\Links::findRelation
Finds relations of the given $rel=$type from $page
This method will first look for relations in the page instance, then by searching the root container if nothing was found in the page.
Signature
public function findRelation(AbstractPage
$page,
string
$rel,
string
$type )
Parameters
$page
— Zend\Navigation\Page\AbstractPage- page to find relations for
$rel
— string- relation, "rel" or "rev"
$type
— string- link type, e.g. 'start', 'next'
Returns
- AbstractPage|array|null
Errors/Exceptions
-
DomainException
- if $rel is not "rel" or "rev"