/**
  * translates an url to an existing uri resource based on the
  * source/destination patterns of the url wildcard. If the resulting
  * url is an alias it will be translated to the system uri.
  *
  * This method runs also configured url translations and filter
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the url could not be translated
  *
  * @param mixed $url
  *
  * @return \eZ\Publish\API\Repository\Values\Content\URLWildcardTranslationResult
  */
 public function translate($url)
 {
     $returnValue = $this->service->translate($url);
     $this->signalDispatcher->emit(new TranslateSignal(array('url' => $url)));
     return $returnValue;
 }
Esempio n. 2
0
 /**
  * The given URL wildcard is deleted
  *
  * @param $urlWildcardId
  *
  * @return \eZ\Publish\Core\REST\Server\Values\NoContent
  */
 public function deleteURLWildcard($urlWildcardId)
 {
     $this->urlWildcardService->remove($this->urlWildcardService->load($urlWildcardId));
     return new Values\NoContent();
 }