Created on 11 June 2025, about 2 months ago

Problem/Motivation

We need to update code to support 11.2 because we use hook_module_implements_alter() - see https://www.drupal.org/node/3496788 β†’

Steps to reproduce

Run tests on 11.2.x

Proposed resolution

Update code so no deprecations are triggered on 11.2.x but leave compatibility with Drupal 10 in place.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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

Merge Requests

Comments & Activities

  • Issue created by @alexpott
  • Merge request !85Do deprecation testing β†’ (Merged) created by alexpott
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    The only deprecation on 11.2 that is triggered by this module that's left is

    1) core/modules/views/src/ViewsConfigUpdater.php:356
    The update to add a default table CSS class for view "locked_content" is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Profile, module and theme provided configuration should be updated. See https://www.drupal.org/node/3499943
    
    Triggered by:
    
    * Drupal\Tests\content_lock\Functional\ContentLockNodeTest::testEdit
      modules/content_lock/tests/src/Functional/ContentLockNodeTest.php:37
    

    We can't fix this until the minimum supported core version is 11.2.x. The hook and attribute conversions for 11.2 (and lower) deprecations have been done in a BC compatible manner so the module is working on D10 and D11.1 and D11.2

  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    Let's get this in - tests are green and all the hooks apart from content_lock_timeout are converted. I'm not doing that because we're going to merge the functionality in that module into the main module.

  • Pipeline finished with Skipped
    about 1 month ago
    #524191
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024