$inflector
$inflector : \Dewdrop\Inflector
The inflector used to convert between URL style ("page-name") pages to file names ("PageName").
This factory finds page files in your admin component's folder.
$inflector : \Dewdrop\Inflector
The inflector used to convert between URL style ("page-name") pages to file names ("PageName").
__construct(\Dewdrop\Admin\Component\ComponentAbstract $component)
Provide the component for which the pages will be created.
\Dewdrop\Admin\Component\ComponentAbstract | $component |
createPage(string $name) : \Dewdrop\Admin\Page\PageAbstract|false
Instantiate the page, if it exists in the component's folder. Otherwise, return false so that other factories can attempt to satisfy the request.
Note that we deliberately skip requests for "component" because that will be the component class file, not a page.
string | $name |