Drupal 8/9 programmatically create a link that opens in new tab

Create links generated by Drupal\Core\Link open in a new tab. Using attributes options in Drupal\Core\Url, to use target property or any other custom property.
copy-icon

Comments

Authors

Read Next