Problem/Motivation
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.
Proposed resolution
To fix this warning, add the following line to the theme definition in matomo_alert_theme() inside matomo_alert.module:
'render element' => 'element',
Issue fork matomo_alert-3538505
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments