public function generateUri($params = array()) { if (!empty($params[$this->pathProperty])) { $string = $this->seoService->getSlugStringForEntity($this->entityType, $params[$this->pathProperty], $this->serviceCallback, $this->dtoProperty); } if (!empty($string)) { $params[$this->pathProperty] = $string; } return parent::generateUri($params); }