Twig Get URL
21 sites
No security coverage
This module provides a Twig function to easily generate the URL for a node when you only have its ID available. You can then use this function in your Twig templates to display node links.
A simple Twig module to generate the URL of a node using the nid.
Features
Useful for getting a path alias of a node in Twig when you only have the node ID available.
Post-Installation
In Twig, simply use the get_url() function with a node's id as the single parameter.
Supporting this Module
This was created for internal use to extend upon our theme we had but we chose to make it available to the Drupal community. If anyone wants to become a co-maintainer and improve upon it, please let us know.