/** * @param ProcessContentDataSignalArguments $signalArguments * @return array */ public function processRelations(ProcessContentDataSignalArguments $signalArguments) { $contentObject = $signalArguments->getContentObject(); $fieldNameAndPath = $signalArguments->getFieldNameAndPath(); $contentData = $signalArguments->getContentData(); $savingBehavior = $signalArguments->getSavingBehavior(); if ($savingBehavior !== SavingBehavior::REPLACE) { $contentData = $this->appendOrRemoveRelations($contentObject, $fieldNameAndPath, $contentData, $savingBehavior); $signalArguments->setContentData($contentData); } return array($signalArguments); }
/** * @param ProcessContentDataSignalArguments $signalArguments * @return int */ protected function getCreationTime(ProcessContentDataSignalArguments $signalArguments) { $creationTime = 0; $creationTimeField = Tca::table($signalArguments->getContentObject()->getDataType())->getTimeCreationField(); if ($creationTimeField) { $creationTime = $this->getContentObjectResolver()->getValue($signalArguments->getContentObject(), $signalArguments->getFieldNameAndPath(), $creationTimeField); } return $creationTime; }