eZ\Publish\Core\REST\Client\ContentService::loadContentInfo PHP Метод

loadContentInfo() публичный Метод

To load fields use loadContent
public loadContentInfo ( integer $contentId ) : eZ\Publish\API\Repository\Values\Content\ContentInfo
$contentId integer
Результат eZ\Publish\API\Repository\Values\Content\ContentInfo
    public function loadContentInfo($contentId)
    {
        $response = $this->client->request('GET', $contentId, new Message(array('Accept' => $this->outputVisitor->getMediaType('ContentInfo'))));
        $restContentInfo = $this->inputDispatcher->parse($response);
        return $this->completeContentInfo($restContentInfo);
    }

Usage Example

Пример #1
0
 /**
  * Content of the content this version belongs to.
  *
  * @return ContentInfo
  */
 public function getContentInfo()
 {
     return $this->contentService->loadContentInfo($this->contentInfoId);
 }