Drupal 11 compatibility patch

Created on 27 October 2025, 2 days ago

Problem/Motivation

The profile_split_enable module currently lacks support for Drupal 11. As Drupal 11 introduces stricter coding standards and removes deprecated APIs, the module fails to function correctly in updated environments. This limits its usability for developers and site builders who are migrating to or starting with Drupal 11.

Key issues identified:

Use of deprecated traits such as ContainerAwareTrait
Outdated core_version_requirement in .info.yml, composer.json
Potential reliance on removed or modified APIs

Proposed resolution

This patch addresses the compatibility issues by:

Updating the .info.yml file to include Drupal 11 support:
core_version_requirement: ^10 || ^11

Replacing deprecated Symfony traits with proper dependency injection.
Refactoring code to align with Drupal 11 standards and removing deprecated method calls.
Verifying module functionality in a clean Drupal 11 installation to ensure stability and compatibility.

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India naveentinu90

Live updates comments and jobs are added and updated live.
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.

No activities found.

Production build 0.71.5 2024