Drupal 11 Compatability for Delete All

Created on 22 April 2025, 2 months ago

Problem/Motivation

Update Delete All for use with Drupal 11

Steps to reproduce

Get 'Update Summary' to pass Delete All for Drupal 11,.

Proposed resolution

Drupal rector recommendations

1) web/modules/patched/delete_all/delete_all.module:0

---------- begin diff ----------
@@ @@
<?php

+use Drupal\Core\Routing\RouteMatchInterface;
+
/**
* @file
* Hooks & functions for delete_all module.
*/

-include_once drupal_get_path('module', 'delete_all') . '/includes/delete_all.content.batch.inc';
-include_once drupal_get_path('module', 'delete_all') . '/includes/delete_all.entities.batch.inc';
-include_once drupal_get_path('module', 'delete_all') . '/includes/delete_all.user.batch.inc';
+include_once \Drupal::service('extension.list.module')->getPath('delete_all') . '/includes/delete_all.content.batch.inc';
+include_once \Drupal::service('extension.list.module')->getPath('delete_all') . '/includes/delete_all.entities.batch.inc';
+include_once \Drupal::service('extension.list.module')->getPath('delete_all') . '/includes/delete_all.user.batch.inc';

/**
* Implements hook_help().
*/
-function delete_all_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match)
+function delete_all_help($route_name, RouteMatchInterface $route_match)
{
switch ($route_name) {
// Main module help for the delete_all module.
----------- end diff -----------

Applied rules:
* ExtensionPathRector

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia interlated

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024