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') }} ```