I'm new in a Drupal 8 and using Devel kint()
function for debugging. In my twig template menu--main.html.twig
, I have looped for the menu items like this:-
{% for item in items %}
{{kint(item.url)}}
The output like this:-
What I should write to print the URI, I've tried {{item.url.uri}}
but not working
{% if item.url.isExternal() %}foo{% endif %}
getUri
to render it