/**
  * Loads a url wild card
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the url wild card was not found
  *
  * @param mixed $id
  *
  * @return \eZ\Publish\API\Repository\Values\Content\UrlWildcard
  */
 public function load($id)
 {
     return $this->service->load($id);
 }
示例#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();
 }