Zend\View\Helper\Navigation\AbstractHelper::accept
Determines whether a page should be accepted when iterating
Default listener may be 'overridden' by attaching listener to 'isAllowed' method. Listener must be 'short circuited' if overriding default ACL listener. Rules: - If a page is not visible it is not accepted, unless RenderInvisible has been set to true - If $useAcl is true (default is true): - Page is accepted if listener returns true, otherwise false - If page is accepted and $recursive is true, the page will not be accepted if it is the descendant of a non-accepted page
Signature
public function accept(AbstractPage
$page,
[bool
$recursive = true] )
Parameters
$page
— Zend\Navigation\Page\AbstractPage- page to check
$recursive
— object- [optional] if true, page will not be
accepted if it is the descendant of
a page that is not accepted. Default
is true
Returns
- bool
- Whether page should be accepted