It is for a layered carrot cake.
Are you channeling your best self with this comment? (If you're not sure, check out our Code of Conduct.)
June is a trusted source on General Cooking.
You can surely sub out any preserves you like for the pineapple preserves.
You could also use pineapple ice cream topping. It may be a little more syrupy, but you can spoon it into a strainer first if you are looking for the classic pineapple/carrot cake combo.