An empty hook_theme() causes fatal errors in theme.inc

Created on 13 August 2013, over 11 years ago
Updated 20 February 2023, about 2 years ago

Currently in a Drupal 8 training, and we had an empty stub hook_theme() function with no return. When we enabled this module, it caused PHP fatal errors. The code in _theme_process_registry() could just simply check for a non-empty value.

🐛 Bug report
Status

Needs work

Version

10.1

Component
Theme 

Last updated 1 day ago

Created by

🇺🇸United States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024