예제 #1
0
파일: Taxon.php 프로젝트: bcremer/Sylius
 /**
  * {@inheritdoc}
  */
 public function getPermalink()
 {
     if (null !== $this->permalink) {
         return $this->permalink;
     }
     if (null === $this->parent) {
         return $this->slug;
     }
     return $this->permalink = $this->parent->getPermalink() . '/' . $this->slug;
 }
예제 #2
0
파일: Taxon.php 프로젝트: ahmadrabie/Sylius
 /**
  * {@inheritdoc}
  */
 public function getPermalink()
 {
     $permalink = $this->translate()->getPermalink();
     if (null !== $permalink) {
         return $permalink;
     }
     if (null === $this->parent) {
         return $this->getSlug();
     }
     $this->setPermalink($permalink = $this->parent->getPermalink() . '/' . $this->getSlug());
     return $permalink;
 }