Browse Source

Issue #3134193 by Anybody: Update cheat sheet

merge-requests/17/head
Chi 3 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 ```twig
{# Basic usage. #} {# Basic usage. #}
<div class="contextual-region"> <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') }} {{ drupal_view('frontpage') }}
</div> </div>
{# Multiple links. #} {# Multiple links. #}
<div class="contextual-region"> <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 }} {{ content }}
</div> </div>
``` ```

Loading…
Cancel
Save