Drupal 10 compatibility: Fix deprecations and coding standards issues

Created on 30 July 2025, 4 days ago

Problem/Motivation

The module uses deprecated APIs and doesn't fully comply with Drupal coding standards, making it incompatible with Drupal 10 and harder to maintain. Updating the code will ensure Drupal 10 compatibility and improve overall code quality.

Steps to reproduce

1. Install and enable the module on a Drupal 10 site.
2. Run the **Upgrade Status** module or use the `drupal-check` command-line tool.
3. Review the list of deprecated APIs and compatibility issues.
4. Run `phpcs` with `Drupal` and `DrupalPractice` standards to identify coding standard violations.

Proposed resolution

  • Replace all deprecated APIs with their recommended Drupal 10 alternatives.
  • Refactor code to comply with Drupal and PSR-12 coding standards.
  • Update the `.info.yml` file to include:
  • core_version_requirement: ^8 || ^9 || ^10

  • Ensure all changes maintain existing functionality.
  • Provide a patch or merge request with the above updates.
๐Ÿ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia AkashKumar07

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024