Beispiel #1
0
 /**
  * Returns navigator ids (breadcrumbtrail) of current page
  *
  * @param \Render\APIs\APIv1\Navigation $navigation
  *
  * @return array
  */
 protected function getNavigatorIds($navigation)
 {
     $currentPage = $navigation->getPage($navigation->getCurrentPageId());
     $navigatorIds = $currentPage->getParentIds();
     $navigatorIds[] = $currentPage->getPageId();
     return $navigatorIds;
 }
Beispiel #2
0
 /**
  * @param string $pageId
  * @param \Render\APIs\APIv1\Navigation $navigation
  *
  * @return bool
  */
 protected function hasChildPages($pageId, $navigation)
 {
     if (count($navigation->getChildrenIds($pageId)) > 0) {
         return true;
     } else {
         return false;
     }
 }