Like Like 1 Dislike 0 Share Blog ITFollow 1 year 9 months ago Short snippet that shows how to get url parameters in drupal . to get query parameter form the url, you can us the following. If you have the url for example /path?id=x To get "id" from the url, use: $id= \Drupal::request()->query->get('id'); Web drupal drupal 8 drupal 9 drupal 10