/** * Loads a content info object. * * To load fields use loadContent * * @access private This is only available to services that needs access to Content w/o permissions checks * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException - if the content with the given id does not exist * * @param mixed $id * @param bool $isRemoteId * * @return \eZ\Publish\API\Repository\Values\Content\ContentInfo */ public function internalLoadContentInfo($id, $isRemoteId = false) { try { $method = $isRemoteId ? "loadContentInfoByRemoteId" : "loadContentInfo"; return $this->domainMapper->buildContentInfoDomainObject($this->persistenceHandler->contentHandler()->{$method}($id)); } catch (APINotFoundException $e) { throw new NotFoundException("Content", $id, $e); } }