Is there a way to identify a paragraph in Drupal 8. Like is there a function to get the type as paragraph in code level?
I need to get it from a form alter function. My requirement is to get all the paragraphs in a form. Or identify the paragraph fields.