If you need to preprocess a specific paragraph type for it’s content or fields but you need to know the node/entity type that the request is coming from you can use the following. Make sure that you check to make sure the $node is not NULL before running methods against $node. Here we are going… Read more »
Drupal: Get the node/bundle when preprocessing a paragraph
January 20, 2022 at 9:42 am | blabbing.