protected function getContentInfo()
    {
        if ($this->object === null) {
            if ($this->contentInfoProxy === null) {
                $this->contentInfoProxy = new ContentContentInfoProxy($this, $this->id);
            }

            return $this->contentInfoProxy;
        } elseif ($this->contentInfoProxy !== null) {
            // Remove ref when we no longer need the proxy
            $this->contentInfoProxy = null;
        }

        return $this->object->getVersionInfo()->getContentInfo();
    }
protected function getContentInfo()
    {
        if ($this->object === null) {
            if ($this->contentInfoProxy === null) {
                $this->contentInfoProxy = new ContentContentInfoProxy($this, $this->id);
            }

            return $this->contentInfoProxy;
        } elseif ($this->contentInfoProxy !== null) {
            // Remove ref when we no longer need the proxy
            $this->contentInfoProxy = null;
        }

        return $this->object->getVersionInfo()->getContentInfo();
    }
protected function getContentInfo ( ) { if ( $ this -> object === null ) { if ( $ this -> contentInfoProxy === null ) { $ this -> contentInfoProxy = new ContentContentInfoProxy ( $ this , $ this -> id ) ; } return $ this -> contentInfoProxy ; } elseif ( $ this -> contentInfoProxy !== null ) { // Remove ref when we no longer need the proxy $ this -> contentInfoProxy = null ; } return $ this -> object -> getVersionInfo ( ) -> getContentInfo ( ) ; }
Return content info, in proxy form if we have not loaded object yet.

For usage in among others DomainMapper->buildLocation() to make sure we can lazy load content info retrieval.

@return \eZ\Publish\API\Repository\Values\Content\ContentInfo
Return content info in proxy form if we have not loaded object yet .