Site Building

Add a Relationship to a View for Drupal 8, 9, and 10

Now that you understand the purpose of relationships in Views, let's add a relationship to a view so that we can access and display a field value from a related entity.

In this tutorial, we'll modify the Player Awards view to add a relationship to the player that received the award. Then we will add a field that belongs to the player content that would normally not be available to the view without our new relationship.