Skip to content

Commit 6cf44ca

Browse files
committed
feat: add linkWithLang methot to get the single degree program URL with a language parameter
1 parent 9d164cf commit 6cf44ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Application/DegreeProgramViewTranslated.php

+10
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,16 @@ public function link(): string
467467
return $this->link;
468468
}
469469

470+
public function linkWithLang(): string
471+
{
472+
return add_query_arg(
473+
[
474+
'lang' => $this->lang,
475+
],
476+
$this->link
477+
);
478+
}
479+
470480
public function slug(): string
471481
{
472482
return $this->slug;

0 commit comments

Comments
 (0)