/** * Get a Content Type object by id * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If content type with the given remote id and status DEFINED can not be found * * @param string $remoteId * * @return \eZ\Publish\API\Repository\Values\ContentType\ContentType */ public function loadContentTypeByRemoteId($remoteId) { return $this->service->loadContentTypeByRemoteId($remoteId); }
/** * Loads a content type by its remote ID * * @return \eZ\Publish\API\Repository\Values\ContentType\ContentType */ public function loadContentTypeByRemoteId(Request $request) { return $this->contentTypeService->loadContentTypeByRemoteId($request->query->get('remoteId')); }