Documentation

All pages (also custom classes), can be created using the page factory,
Zend\Navigation\Page\AbstractPage::factory(). The
factory can take an array with options, or a Zend\Config object. Each key in the array/config corresponds to a
page option, as seen in the section on Pages. If the option uri is given and no
MVC options are given (action, controller, route), an URI page will be created. If any of the MVC
options are given, an MVC page will be created.

If type is given, the factory will assume the value to be the name of the class that should be created. If the
value is mvc or uri and MVC/URI page will be created.