From c096aece9f54110e9a4e12afdc6c3c425d3ddfaa Mon Sep 17 00:00:00 2001 From: Thomas Frobieter <41707-thomas.frobieter@users.noreply.drupalcode.org> Date: Fri, 23 Feb 2024 06:25:05 +0000 Subject: [PATCH] Issue #3407926: Extend documentation for drupal_url() + add example for taxomy_term --- docs/cheat-sheet.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/cheat-sheet.md b/docs/cheat-sheet.md index 642260c..036e974 100644 --- a/docs/cheat-sheet.md +++ b/docs/cheat-sheet.md @@ -159,6 +159,8 @@ Note that drupal_field() does not work for view modes powered by Layout Builder. ## Drupal URL ```twig +{# The function accepts a valid internal path, such as "/node/1", "/taxonomy/term/1", a query string like "?query," or a fragment like "#anchor". #} + {# Basic usage. #} {{ drupal_url('node/1') }}