OOP Hooks

Drupal 11.2 OOP Hooks Complete Guide

Drupal 11.2 introduces complete Object-Oriented Programming (OOP) support for hooks, eliminating the need for .module files in many cases. This guide covers the three key attributes that make this possible.

Overview

Starting with Drupal 11.2, you can implement ALL hooks using object-oriented methods with these attributes:

0/5