eZ\Publish\Core\REST\Client\ContentTypeService::loadContentTypeByRemoteId PHP Méthode

loadContentTypeByRemoteId() public méthode

Get a Content Type object by id.
public loadContentTypeByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
$remoteId string
Résultat eZ\Publish\API\Repository\Values\ContentType\ContentType
    public function loadContentTypeByRemoteId($remoteId)
    {
        $response = $this->client->request('GET', $this->requestParser->generate('typeByRemoteId', array('type' => $remoteId)), new Message(array('Accept' => $this->outputVisitor->getMediaType('ContentTypeList'))));
        $contentTypes = $this->inputDispatcher->parse($response);
        return reset($contentTypes);
    }