diff --git a/core/modules/contact/src/ContactFormListBuilder.php b/core/modules/contact/src/ContactFormListBuilder.php index 156d1c9..3f839f8 100644 --- a/core/modules/contact/src/ContactFormListBuilder.php +++ b/core/modules/contact/src/ContactFormListBuilder.php @@ -10,6 +10,7 @@ use Drupal\Component\Utility\String; use Drupal\Core\Config\Entity\ConfigEntityListBuilder; use Drupal\Core\Entity\EntityInterface; +use Drupal\Core\Url; /** * Defines a class to build a listing of contact form entities. @@ -58,7 +59,7 @@ public function buildRow(EntityInterface $entity) { * An HTML string containing a link to the given route and parameters. */ protected function l($text, $route_name, array $parameters = array(), array $options = array()) { - return $this->linkGenerator()->generate($text, $route_name, $parameters, $options); + return $this->linkGenerator()->generate($text, new Url($route_name, $parameters, $options)); } /**