Skip to content

Instantly share code, notes, and snippets.

@init90
Created September 22, 2016 15:49
Show Gist options
  • Save init90/2343b9ce8aad0128f6889ed6f02dac60 to your computer and use it in GitHub Desktop.
Save init90/2343b9ce8aad0128f6889ed6f02dac60 to your computer and use it in GitHub Desktop.
Drupal 8 get parameters from route
$route = \Drupal::service('current_route_match');
$job_id = $route->getRawParameters()->getInt('job');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment