From 246f869736054ba89fbc6dbd040ffd847c33effb Mon Sep 17 00:00:00 2001 From: Alison Jo Date: Fri, 16 Jun 2023 18:12:06 +0000 Subject: [PATCH] add description and params to drupal_view() (demoing how to make changes) --- docs/cheat-sheet.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/cheat-sheet.md b/docs/cheat-sheet.md index 6b5fefc..6e41179 100644 --- a/docs/cheat-sheet.md +++ b/docs/cheat-sheet.md @@ -1,6 +1,17 @@ # Cheat sheet ## Drupal View +Render a view. See Twig Tweak and Views page for more information. +### Accepted parameters +
+
$name
+
String - Required - The name of the view to embed.
+
$display_id
+
String - Optional - The display id to embed. Default is default.
+
$...
+
Mixed - Optional - Any additional parameters will be passed as arguments.
+
+ ```twig {{ drupal_view('who_s_new', 'block_1') }} ```