Problem/Motivation

There are almost no hooks left that need to be in .module files.

There are a few things that need investigation:
core/includes/form.inc:955: if (($function = $batch['redirect_callback']) && function_exists($function)) {
core/modules/views/src/Plugin/views/HandlerBase.php:572: if (isset($this->definition['access callback']) && function_exists($this->definition['access callback'])) {
core/modules/views_ui/src/ViewUI.php:341: $cancel_submit = function_exists($form_id . '_cancel') ? $form_id . '_cancel' : [$this, 'standardCancel'];

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

nicxvan created an issue. See original summary.

quietone’s picture

quietone’s picture

nicxvan’s picture

I think we just need to ensure there are alternatives to these.

catch’s picture

nicxvan’s picture

mstrelan’s picture

quietone’s picture

Title: Road to deprecating .module files » [meta] Road to deprecating .module files
Category: Task » Plan
steinmb’s picture

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.