function rollBackTranslatedTextProperty( $rollBackAction, $valueId, $objectId, $attributeId, $translatedContentId, $operation ) { if ( shouldRemove( $rollBackAction, $operation ) ) { removeTranslatedTextAttributeValue( $valueId ); } elseif ( shouldRestore( $rollBackAction, $operation ) ) { createTranslatedTextAttributeValue( $valueId, $objectId, $attributeId, $translatedContentId ); } }
public function remove( $keyPath ) { $valueId = $keyPath->peek( 0 )->translatedTextAttributeId; removeTranslatedTextAttributeValue( $valueId ); }