*/ require_once 'init.php'; \TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords(); /* @var $editDocumentController \TYPO3\CMS\Backend\Controller\EditDocumentController */ $editDocumentController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\EditDocumentController::class); // Preprocessing, storing data if submitted to $editDocumentController->preInit(); // Checks, if a save button has been clicked (or the doSave variable is sent) if ($editDocumentController->doProcessData()) { $formprotection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get(); if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'editRecord')) { $editDocumentController->processData(); } } $editDocumentController->init(); $editDocumentController->main(); $editDocumentController->printContent();