private function loadData() { // get the current page id $pageId = $this->getContainer()->get('page')->getId(); // fetch the items $this->items = FrontendPagesModel::getSubpages($pageId); }