Zend\Navigation\AbstractContainer::addPage
Adds a page to the container
This method will inject the container as the given page's parent by calling .
Signature
public function addPage(AbstractPage|array|Traversable
$page )
Parameters
$page
— object- page to add
Returns
- self
- fluent interface, returns self
Errors/Exceptions
-
InvalidArgumentException
- if page is invalid