PHP Notice: Undefined index: #id when used with Context module
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2795095. -->
Reported by: [johnalbin](https://www.drupal.org/user/32095)
>>>
<p>*sigh* The differing rendering of block.html.twig between Context module and core Drupal is annoying.</p>
<p>With menu_block 8.x-1.3, I'm seeing this PHP notice:</p>
<blockquote><p>
Notice: Undefined index: #id in menu_block_theme_suggestions_block_alter()
</p></blockquote>
<p>because <code>$variables['elements']['#id']</code> doesn't exist when Context module is rendering a block.</p>
issue