Browse Source

Update documentation on contextual links

merge-requests/2/head 3.0.0-beta2
Chi 5 years ago
parent
commit
001f4a3657
  1. 4
      README.md

4
README.md

@ -184,12 +184,12 @@ drush ev "print_r(array_keys(\Drupal::service('plugin.manager.block')->getDefini
```twig
{# Basic usage. #}
<div class="contextual-region">
{{ 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">
{{ 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