I've written a paragraph preprocess function that is working perfectly. The only issue is that I need it to only work when that paragraph is embedded in a certain content type.
function mytheme_preprocess_paragraph__paragraph_type(&$variables) {
// Do things here if content type == 'specified_type'
}
I'm unsure of how to check the content type, though. How can I accomplish this?