- Issue created by @sergio.rizo
When enabling the Matomo Alert module and placing the Matomo Alert Block, the following warning appears on the page:
Warning: Undefined array key "render element" in Drupal\Core\Theme\ThemeManager->render() (line 202 of core/lib/Drupal/Core/Theme/ThemeManager.php).
This happens because the theme definition for matomo_alert_block is missing the 'render element' => 'element' key, which is required for custom block templates in Drupal.
To fix this warning, add the following line to the theme definition in matomo_alert_theme() inside matomo_alert.module:
'render element' => 'element',
Needs review
1.0
Code