public loadContentTypeByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | ||
$remoteId | string | |
Результат | 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));
}