Browse Source

Issue #3134193 by Anybody: Update cheat sheet

merge-requests/17/head
Chi 2 years ago
parent
commit
b25684f98a
  1. 4
      docs/cheat-sheet.md

4
docs/cheat-sheet.md

@ -168,12 +168,12 @@ See [rendering blocks with Twig Tweak](blocks.md#block-plugin) for details.
```twig
{# Basic usage. #}
<div class="contextual-region">
{{ drupal_contextual_links('entity.view.edit_form:view=frontpage&display_id=feed_1:') }}
{{ drupal_contextual_links('entity.view.edit_form:view=frontpage:display_id=feed_1') }}
{{ drupal_view('frontpage') }}
</div>
{# Multiple links. #}
<div class="contextual-region">
{{ drupal_contextual_links('node:node=123|block_content:block_content=123:') }}
{{ drupal_contextual_links('node:node=123:|block_content:block_content=123:') }}
{{ content }}
</div>
```

Loading…
Cancel
Save