- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 72字
- 2025-04-04 18:20:51
Utilizing dynamic arguments
Views can be configured to accept contextual filters. Contextual filters allow you to provide a dynamic argument that modifies the view's output. The value is expected to be passed from the URL; however, if it is not present, there are ways to provide a default value.
In this recipe, we will create a new page called My Content, which will display a user's authored content on the /user/%/content route.