drupal 8 get query params code example
Example: drupal 8 get url query parameters
// URL query parameter.
\Drupal::request()->query->get('keys');
\Drupal::request()->query->all()
// URL query parameter.
\Drupal::request()->query->get('keys');
\Drupal::request()->query->all()