How to get the current request object Which is the preferred way to get the current request and why? Is one of these to be deprecated? Any other advantages/disadvantages? Drupal 9 Drupal Support Drupal 10 Drupal Request Symfony Request Example Code Example Form getrequest Symfony RequestStack