I want to give content editors the ability to add a Feed of some sort (Maybe Twitter, Tumblr, etc) to a particular node. I'd like to use Paragraphs because I want them to be able to drop this Feed in between various other pieces of content.
The Paragraph Bundle would just have one field to accept the resource URL. I would do all the necessary processing behind the scenes and would send the formatted content back to the node via a twig template.
I've got a version working using a block instead of a paragraph bundle, and I'd like to use the same custom module to allow for a paragraph, but I'm unsure in Drupal 8 how best to structure this.
The best I can come up with, is a preprocess function of some sort- preprocess_node, or preprocess_paragraph (which I think exist in D8) that would kick off the whole thing, but I was wondering if there was some kind of base Entity class that has a method I can overwrite or something. (Similar to how the BlockBase class has the "build" method.)
template_preprocess_paragraph(&$variables)
and there'stemplate_preprocess_paragraph__PARAGRAPH_TYPE(&$variables)
as well.