drupal 8 query to string code example Example: drupal 8 get query string parameters $query = \Drupal::request()->query->get('name');