Skip to main content
Home
Drupal life hacks

Main navigation

  • Drupal
  • React
  • WP
  • Contact
  • About
User account menu
  • Log in

Breadcrumb

  1. Home

.theme files

By admin, 12 August, 2026
Drupal 11.5 .theme files deprecated and theme hooks converted to OOP classes

The .theme File Extension Is Deprecated in Drupal 11.5: A Guide to OOP Theme Hooks

Drupal 11.5 introduces an important change for theme developers: the .theme file extension has been deprecated.

Themes have traditionally placed procedural hooks and helper functions in a file such as:

Tags

  • Drupal 11.5
  • Drupal 13
  • Drupal themes
  • Drupal theme development
  • Drupal OOP hooks
  • Drupal Hook API
  • Drupal hooks
  • .theme files
  • Drupal deprecations
  • Drupal migration
  • PHP
  • Drupal Core
  • Drupal developers
.theme files
Powered by Drupal