diff --git a/docs/cheat-sheet.md b/docs/cheat-sheet.md index f4df018..b414e3a 100644 --- a/docs/cheat-sheet.md +++ b/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