I am porting code from Drupal 7 to Drupal 8.
In Drupal 7, my code looks like the following:
return url($parts[0] . '/' . $parts[1] . '/profile/id/' . $context['profile']->uuid . '/cancel');
I know that I have to use Drupal::url()
, but I have to use a route name or an external URI, but I don't know what to pass.
How should I update my code for Drupal 8?