Drupal 11 compatibility

Created on 13 March 2025, 25 days ago

Problem/Motivation

Url::toRenderArray() is depreciated in Drupal 10 and removed in Drupal 11
https://www.drupal.org/node/3342977 β†’

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rhovland Oregon

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

Merge Requests

Comments & Activities

  • Issue created by @rhovland
  • πŸ‡ΊπŸ‡ΈUnited States rhovland Oregon

    Compatibility fixed. Ready for review.

  • πŸ‡¨πŸ‡΄Colombia juandhr Manizales

    I have reviewed and tested the changes from commerce_product_review-3512873/3512873-drupal-11-compatibility.

    • The module installed and worked correctly in a Drupal 11 environment with the core_version_requirement update in the .info.yml file.
    • The change successfully removes the deprecated Url::toRenderArray() usage, and the affected links/pages render correctly.

    However, I noticed a deprecation using PhpStan. Drupal\commerce_product_review\Element\OverallProductRating extends the deprecated class Drupal\Core\Render\Element\FormElement, which was deprecated in Drupal 10.3.0 and will be removed in Drupal 12. The recommended replacement is Drupal\Core\Render\Element\FormElementBase.

    Given that this does not prevent compatibility with Drupal 11, I will mark this as RTBC. However, addressing the deprecation would be ideal for long-term support.

  • πŸ‡ΊπŸ‡ΈUnited States rhovland Oregon

    That depreciation is handled in πŸ“Œ Implement validation tests Active

Production build 0.71.5 2024