10 years ago we released the first tutorials in our Drupal 7 Coding for Views Series. Today we're super excited to release the first 8 tutorials in our new Views for Developers series, a Drupal 8+ update to Coding for Views.
Views continues to be an essential part of the Drupal ecosystem. And many of the patterns it established both in the UI and the code have helped to inform the modern Drupal developer experience. Since becoming part of Drupal core, Views has become even more integrated into every aspect of Drupal. As a developer, mastering the Views API allows you to empower site administrators to display and query your module's custom data using the full power of the Views UI.
When you expose your data and custom logic to Views, you allow site administrators to mix, match, and remix that data in any number of different ways--often without you needing to write any new code yourself. This can make your custom code easier to maintain, and increase its usefulness.
Before diving into the Views API, you'll want to make sure you're familiar with hooks and the Plugin API. If you need to brush up on building Views with the UI check out Views: Create Lists with Drupal.
- Introduction to the Views API
- Understand the Views Build and Render Cycle
- Alter a View before It's Rendered
- Alter a View after the Render Process
- Alter the Query Used for a View
- Expose a Custom Database Table to Views
- Add Relationships Between 2 Tables in Views
- Expose Custom Entities to Views
- Overview: Theming Views
- Override a View's Wrapper Template
We're already working on more tutorials for this series. The first set focuses on exposing data to Views so that it can be used when building a list, and altering a View when it's executed. In the next couple of weeks we'll add tutorials covering defining custom Views handler plugins for field formatters, sorts, and filters. These custom plugins will allow you to customize the way that queries are built using Views.