Browse Source

Issue #3407926: Extend documentation for drupal_url() + add example for taxomy_term

3.x 3.3.0
Thomas Frobieter 7 months ago committed by Ivan
parent
commit
c096aece9f
  1. 2
      docs/cheat-sheet.md

2
docs/cheat-sheet.md

@ -159,6 +159,8 @@ Note that drupal_field() does not work for view modes powered by Layout Builder.
## Drupal URL ## Drupal URL
```twig ```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. #} {# Basic usage. #}
{{ drupal_url('node/1') }} {{ drupal_url('node/1') }}

Loading…
Cancel
Save