Browse Source

Issue #3402615: Update documentation for drupal_view_result

merge-requests/34/head
Chi 9 months ago
parent
commit
271e723d67
  1. 5
      docs/cheat-sheet.md

5
docs/cheat-sheet.md

@ -10,8 +10,11 @@ Specify additional parameters which map to contextual filters you have configure
```
## Drupal View Result
Checks results for a given view. Note that the results themselves are not printable.
```twig
{{ drupal_view_result('who_s_new', 'block_1') }}
{% if drupal_view_result('cart')|length == 0 %}
{{ 'Your cart is empty.'|t }}
{% endif %}
```
## Drupal Block

Loading…
Cancel
Save