Example #1
0
 protected function removeNodeFromList($nodeName)
 {
     if ($this->nodes->hasKey($nodeName)) {
         $oldNode = $this->nodes->get($nodeName);
         if ($oldNode->parent()) {
             $oldNode->unlock()->detach();
         }
         $this->nodes->removeByKey($nodeName);
         $this->updateRequired = true;
     }
 }
Example #2
0
 /**
  * Returns MenuNode on which the MenuPathTokenProvider builds the route path.
  *
  * @return PHPCRMenuNode
  */
 public function providePrimaryMenuNode()
 {
     return $this->menuNodes->first();
 }