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

Last updated July 12, 2019
Module Development9.5.x/10.0.x

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.