如何在网址末尾添加元素?

时间:2018-11-04 07:02:40

标签: php forms url routes

如何在url的末尾添加元素?

当前路径为:

  

https://www.domaine.com/store/3

在下面的链接中,我想在链接/cgv的末尾添加

  

https://www.domaine.com/store/3/cgv

$link = Link::createFromRoute($this->t('the general terms and conditions of business'), 'entity.commerce_store.canonical', ['commerce_store' => 3], ['attributes' => ['target' => '_blank']])->toString();

0 个答案:

没有答案