/**
  * 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)
 {
     $spiContentType = $this->contentTypeHandler->loadByRemoteId($remoteId);
     return $this->contentTypeDomainMapper->buildContentTypeDomainObject($spiContentType, array_map(function ($id) {
         return $this->contentTypeHandler->loadGroup($id);
     }, $spiContentType->groupIds));
 }
 /**
  * Load a (defined) content type by remote id
  *
  * @param mixed $remoteId
  * @return \eZ\Publish\SPI\Persistence\Content\Type
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If defined type is not found
  */
 public function loadByRemoteId($remoteId)
 {
     if (isset($this->contentTypes['remoteId'][$remoteId])) {
         return $this->contentTypes['remoteId'][$remoteId];
     }
     return $this->contentTypes['remoteId'][$remoteId] = $this->innerHandler->loadByRemoteId($remoteId);
 }
    /**
     * 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 )
    {
        $spiContentType = $this->contentTypeHandler->loadByRemoteId( $remoteId );

        return $this->buildContentTypeDomainObject(
            $spiContentType
        );
    }