I want to get the internal path of a node from its path alias. In Drupal 7 we could use drupal_get_normal_path()
directly in the PHP template.
With Drupal 8, Is there a function to get the internal path from an alias inside a Twig template?
In my Twig template I have tried to use the url()
function without success...
e.g. {% set path = url('myalias') %}
...