Drupal 8/9 gets the current page URI programmatically

In Drupal 8/9 get the current page URI programmatically by using the following snippet.
copy-icon

Comments

Authors

Read Next