Skip to content

Commit

Permalink
feat: ✨ pass options to URL funtion
Browse files Browse the repository at this point in the history
  • Loading branch information
woldtwerk committed Jul 30, 2024
1 parent 9546e4a commit 7cadc5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public function getLanguages($language = NULL) {
* @return static
* A new Url object based on user input.
*/
public function urlFromUserInput(string $url) {
return \Drupal\Core\Url::fromUserInput($url);
public function urlFromUserInput(string $url, array $options = []) {
return \Drupal\Core\Url::fromUserInput($url, $options);
}
}

0 comments on commit 7cadc5d

Please sign in to comment.