eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler::loadContentInfo PHP Method

loadContentInfo() public method

Returns the metadata object for a content identified by $contentId.
public loadContentInfo ( integer | string $contentId ) : eZ\Publish\SPI\Persistence\Content\ContentInfo
$contentId integer | string
return eZ\Publish\SPI\Persistence\Content\ContentInfo
    public function loadContentInfo($contentId)
    {
        return $this->contentMapper->extractContentInfoFromRow($this->contentGateway->loadContentInfo($contentId));
    }

Usage Example

Example #1
0
 /**
  * Returns the metadata object for a content identified by $contentId.
  *
  * @param int|string $contentId
  *
  * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo
  */
 public function loadContentInfo($contentId)
 {
     return $this->treeHandler->loadContentInfo($contentId);
 }