Esempio n. 1
0
 public function getSitePath(\Iphp\CoreBundle\Routing\EntityRouter $entityRouter, $action = null)
 {
     if ($action) {
         return $entityRouter->generateEntityActionPath($this, $action);
     }
     return $this->getFullPath();
 }
Esempio n. 2
0
 public function getSitePath(EntityRouter $entityRouter, $action = 'view')
 {
     return $entityRouter->generateEntityActionPath($this, $action, array('id' => $this->getId()));
 }