kevinquillen.com: Upcasting Custom Route Parameters in Drupal

Thanks to Symfony, Drupal has an incredibly robust routing system. What once used to be a chore in Drupal versions prior to 8 is now a breeze. Creating routes is super simple and parameter upcasting is usually automatic for known entities, like nodes, users, and taxonomy terms.For example, take this route definition:
PubDate

Tags