/** * removes an url wildcard * * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to remove url wildcards * * @param \eZ\Publish\API\Repository\Values\Content\URLWildcard $urlWildcard the url wildcard to remove */ public function remove(URLWildcard $urlWildcard) { $returnValue = $this->service->remove($urlWildcard); $this->signalDispatcher->emit(new RemoveSignal(array('urlWildcardId' => $urlWildcard->id))); return $returnValue; }
/** * 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(); }