Zend\View\Helper\Navigation\AbstractHelper::setDefaultRole
Sets default ACL role(s) to use when iterating pages if not explicitly set later with {@link setRole()}
Signature
public function setDefaultRole([mixed
$role = null] )
Parameters
$role
— mixed- [optional] role to set. Expects null, string, or an
instance of . Default is null, which
sets no default role.
Returns
- void
Errors/Exceptions
-
InvalidArgumentException
- if role is invalid