bundle/Templating/Twig/Runtime/EzPublishRuntime.php
private function loadVersionInfo($contentId): VersionInfo
    {
        return $this->repository->sudo(
            static function (Repository $repository) use ($contentId): VersionInfo {
                return $repository->getContentService()->loadVersionInfoById($contentId);
            }
        );
    }
private function loadVersionInfo($contentId): VersionInfo
    {
        return $this->repository->sudo(
            static function (Repository $repository) use ($contentId): VersionInfo {
                return $repository->getContentService()->loadVersionInfoById($contentId);
            }
        );
    }
private function loadVersionInfo ( $ contentId ) : VersionInfo { return $ this -> repository -> sudo ( static function ( Repository $ repository ) use ( $ contentId ) : VersionInfo { return $ repository -> getContentService ( ) -> loadVersionInfoById ( $ contentId ) ; } ) ; }
Loads the version info for provided content ID.

@param int|string $contentId

@return \eZ\Publish\API\Repository\Values\Content\VersionInfo
Loads the version info for provided content ID .