Drupal 8 router常用

跳转:

RedirectResponse(\Drupal::destination()->get());

获取URL:

$url = Url::fromRoute('myurl',['myargs' => $entity->id()]);