Add option to hide contextual links
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3557686. -->
Reported by: [jkingsnorth](https://www.drupal.org/user/2659819)
Related to !143
>>>
<p>This module is really great; and the demo on 1xinternet really shows it off brilliantly.</p>
<p>I'm struggling a bit with implementation because the module has a hard dependency on 'contextual'.</p>
<p>This scatters contextual links across the site which I can disable for most users by permissions, but not administrators.</p>
<p>To mis-quote something I found online: this is at best annoying, and at worst breaks our theme.</p>
<p>Has anyone managed to find a way to suppress the contextual links? I notice they don't show up in the 1xi demo site.</p>
<p>I've tried various things, but nothing quite works:</p>
<p>Hide via CSS: Leaves the placeholder divs and css classes in place which disrupt the theme.</p>
<p>Remove links via hook_entity_view_alter: doesn't target everything</p>
<p>Remove links via hook_contextual_links_alter: (by setting it to an empty array) leaves the placeholder divs, which disrupt the theme.</p>
<p>Thanks for your help [=</p>
issue