getSubpages() public static method

Fetch a list of subpages of a page.
public static getSubpages ( integer $id ) : array
$id integer The id of the item to grab the subpages for.
return array
Example #1
0
 /**
  * Load the data
  */
 private function loadData()
 {
     // get the current page id
     $pageId = $this->getContainer()->get('page')->getId();
     // fetch the items
     $this->items = FrontendPagesModel::getSubpages($pageId);
 }