/**
  * Translates the route part before delivered to frontend
  *
  * @return false|mixed|string
  */
 public function getRouteFrontName()
 {
     if (!$this->translationEnabled()) {
         return parent::getRouteFrontName();
     }
     return $this->getTranslationModel()->translateRouteToFront(parent::getRouteFrontName());
 }
Esempio n. 2
0
 public function testGetRouteFrontName()
 {
     $this->_model->setRouteName('catalog');
     $this->assertEquals('catalog', $this->_model->getRouteFrontName());
 }