/** * Callback to add additional data to new elements created in the dependency resolver utility. * * @param t3lib_utility_Dependency_Element $caller * @param array $callerArguments * @param array $targetArgument * @return void */ public function createNewDependentElementCallback(array $callerArguments, array $targetArgument, t3lib_utility_Dependency_Element $caller) { if ($caller->hasDataValue('liveId') === FALSE) { $liveId = t3lib_BEfunc::getLiveVersionIdOfRecord($caller->getTable(), $caller->getId()); if (is_null($liveId) === FALSE) { $caller->setDataValue('liveId', $liveId); } } }