concrete/src/Page/Collection/Version/Version.php
public function createNew($versionComments)
    {
        $app = Facade::getFacadeApplication();
        $cloner = $app->make(Cloner::class);
        $clonerOptions = $app->build(ClonerOptions::class)
            ->setCopyContents(false)
            ->setVersionComments($versionComments)
        ;
        $myCollection = Page::getByID($this->getCollectionID());
        $newVersion = $cloner->cloneCollectionVersion($this, $myCollection, $clonerOptions);

        return $newVersion;
    }
public function createNew($versionComments)
    {
        $app = Facade::getFacadeApplication();
        $cloner = $app->make(Cloner::class);
        $clonerOptions = $app->build(ClonerOptions::class)
            ->setCopyContents(false)
            ->setVersionComments($versionComments)
        ;
        $myCollection = Page::getByID($this->getCollectionID());
        $newVersion = $cloner->cloneCollectionVersion($this, $myCollection, $clonerOptions);

        return $newVersion;
    }
public function createNew ( $ versionComments ) { $ app = Facade :: getFacadeApplication ( ) ; $ cloner = $ app -> make ( Cloner :: class ) ; $ clonerOptions = $ app -> build ( ClonerOptions :: class ) -> setCopyContents ( false ) -> setVersionComments ( $ versionComments ) ; $ myCollection = Page :: getByID ( $ this -> getCollectionID ( ) ) ; $ newVersion = $ cloner -> cloneCollectionVersion ( $ this , $ myCollection , $ clonerOptions ) ; return $ newVersion ; }
Create a new version for the same collection as this collection version.

@param string $versionComments the new collection version comments

@return \Concrete\Core\Page\Collection\Version\Version
Create a new version for the same collection as this collection version .