eZ\Publish\Core\Repository\ContentTypeService::loadContentTypeByRemoteId PHP Method

loadContentTypeByRemoteId() public method

Get a Content Type object by id.
public loadContentTypeByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
$remoteId string
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));
    }