Contao\Controller::createInitialVersion PHP Method

createInitialVersion() protected method

Create an initial version of a record
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Versions->initialize() instead.
protected createInitialVersion ( string $strTable, integer $intId )
$strTable string The table name
$intId integer The ID of the element to be versioned
    protected function createInitialVersion($strTable, $intId)
    {
        @trigger_error('Using Controller::createInitialVersion() has been deprecated and will no longer work in Contao 5.0. Use Versions->initialize() instead.', E_USER_DEPRECATED);
        $objVersions = new \Versions($strTable, $intId);
        $objVersions->initialize();
    }