public loadContentInfoByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\Content\ContentInfo | ||
$remoteId | string | |
Résultat | eZ\Publish\API\Repository\Values\Content\ContentInfo |
public function loadContentInfoByRemoteId($remoteId)
{
$contentInfo = $this->internalLoadContentInfo($remoteId, true);
if (!$this->repository->canUser('content', 'read', $contentInfo)) {
throw new UnauthorizedException('content', 'read', array('remoteId' => $remoteId));
}
return $contentInfo;
}