Front End

Drupal Camp Asheville 2024 - July 12th-14th

Advanced techniques for components integration with Drupal (morning)

Mario Hernandez
Mediacurrent
Component-integration with a Drupal website is one of the most difficult process to grasp when developing with the component-based approach.  There are so many scenarios for how values from Drupal fields should be retrieved.  Drupal doesn't make things easier either since in most cases Drupal will not render just the value of a field but instead provides a full array for a field.  In addition, retrieving field values from Drupal may require multiple Twig templates and these also vary depending on the entity type you are working with (i.e. blocks, views, nodes, paragraph types, media, etc.).  You will be surprised to learn that sometimes the problem with integrations may be the result of how components are built.