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

Created on 13 August 2013, almost 11 years ago
Updated 20 February 2023, over 1 year 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 about 2 hours ago

Created by

🇺🇸United States Dave Reid Nebraska 🇺🇸

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.69.0 2024