magento2 – magento 2.1.8 pdf href opening in a new tab

I am new to Magento and I try to modify an extension to suit my needs. I would like the href to open in a new tab. The code is the following:

yes ($ itemRule[‘file_action’] == Mageplaza ProductAttachments Model Config Source FileAction :: VIEWONLINE) {
$ href = $ block-> getUrl (& # 39; mpattachments / file / viewonline & # 39 ;, [‘id’ => $itemRule[‘file_id’], & # 39; product_id & # 39; => $ block-> getProduct () -> getId ()]);
} else {
$ href = $ block-> getUrl (& # 39; mpattachments / file / download & # 39 ;, [‘id’ => $itemRule[‘file_id’], & # 39; product_id & # 39; => $ block-> getProduct () -> getId ()]);
}
I would really appreciate some help.