SilverCart\Model\Pages\PageController::getRecursivePagesForGroupedDropdownAsArray
Builds an associative array of ProductGroups to use in GroupedDropDownFields.
Signature
public function getRecursivePagesForGroupedDropdownAsArray([SiteTree
$parent = NULL,
[boolean
$allChildren = false,
[boolean
$withParent = false]]] )
Parameters
$parent
—
object
- Expects a ProductGroupHolder or a ProductGroupPage
$allChildren
—
boolean
- All children or only visible children?
$withParent
—
boolean
- Add parent page to the list?
Returns
- array