Esempio n. 1
0
 protected function isActive(AbstractPage $page, $recursive = true)
 {
     if ($page->get('identifier') != $this->identifier && $recursive) {
         foreach ($page->getPages() as $subPage) {
             if ($this->isActive($subPage, $recursive)) {
                 return true;
             }
         }
         return false;
     }
     return $page->get('identifier') == $this->identifier;
 }