Skip to main content
rjacobsen0's user avatar
rjacobsen0's user avatar
rjacobsen0's user avatar
rjacobsen0
  • Member for 6 years, 8 months
  • Last seen more than 2 years ago
awarded
awarded
revised
How do I identify what type of data or object I have? It's a referenced entity
Referenced the two other questions/answers I used and clarified the question.
Loading…
comment
How do I identify what type of data or object I have? It's a referenced entity
Thanks for the comment. I actually saw that answer, and even tried to use code from it. The new part in my question is about how to identify what type of block I have. And honestly, I might have a type instead of an actual block. I really do need help figuring out how to bridge between what I have and what's available in that answer.
Loading…
awarded
awarded
revised
Modify article body for one particular article to add data
Changed to code that works, has comments, more thorough. Left out the code that processes the data.
Loading…
comment
drupal_render() is deprecated. What replaces it?
Got your edit. Thanks! Here's my edited example for anyone who needs it. $newBodyValueHtml = drupal_render($newBodyValueRenderArray); becomes $render_service = \Drupal::service('renderer'); $newBodyValueHtml = $render_service->renderPlain($newBodyValueRenderArray);
awarded
awarded
accepted
Loading…
awarded
Loading…
comment
Modify article body for one particular article to add data
I ended up taking a different approach. I modified the node and saved it (this will eventually happen on cron).
comment
Modify article body for one particular article to add data
Oh. Ha! Yep. That's probably just what I was looking for. Thanks! I'm still new to Drupal. Would a custom field formatter be better?
Loading…