Module Development

Separation of Concerns: Content vs. Presentation for Drupal 8, 9, 10, and 11

Traditional Drupal development using the render pipeline allows you to ignore the pitfalls of mixing content and presentation logic in your data model. In a scenario with multiple distribution channels, this separation becomes of critical importance.

In this tutorial we will learn how to:

  • Understand the importance of presentation and content separation (delivering clean content, not caring about how to show that content)
  • Develop strategies to avoid these presentational problems with minimal damage to the content API

By the end of this tutorial you'll have a better understanding of why keeping presentation data out of your content model is important, and some tips for doing so.

Decoupled Headless Drupal