Problem/motivation

Drupal 11 will be released in 2024.

Steps to make Drupal 11 compatible

  1. Check for Drupal 11 code compatibility
  2. Check for PHP 8.3 compatibility
  3. Check for jQuery 4 compatibility
  4. Update core version requirements to include Drupal 11
  5. Drop Drupal 8 and 9 support
  6. Unit tests are updated to work with Drupal 11 (PHPUnit 10)
  7. Automated tests pass D11 compatibility
  8. Change version numbering to use semantic versioning https://semver.org/
This module uses Gitlab CI for automated testing of proposed code changes. To contribute code changes, create a merge request. Patch files will not trigger automated testing and are not sufficient for review.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mmarler created an issue. See original summary.

mark_fullmer’s picture

Assigned: Unassigned » mark_fullmer
Drupal 11 compatibility audit: layoutbuilderrestrictions

Auditor checklist

  • [x] Deprecated Drupal code is remediated
  • [x] Deprecated PHP code is remediated
  • [x] Custom code is compatible with jQuery 4
  • [x] Custom code coreversionrequirement indicates Drupal 11 compatibility

References

Composer

  • [x] This module has a composer.json file. Manually review it for Drupal 11 compatibility, such as external requirements, core version constraints, and PHP version constraints

PHPStan Audit of Drupal deprecations

 ------ --------------------------------------------------------------------------------------------------- 
  Line   src/Controller/ChooseBlockController.php                                                           
 ------ --------------------------------------------------------------------------------------------------- 
  14     Class Drupal\layout_builder_restrictions\Controller\ChooseBlockController extends @internal class  
         Drupal\layout_builder\Controller\ChooseBlockController.                                            
 ------ --------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------- 
  Line   src/Controller/MoveBlockController.php                                                           
 ------ ------------------------------------------------------------------------------------------------- 
  17     Class Drupal\layout_builder_restrictions\Controller\MoveBlockController extends @internal class  
         Drupal\layout_builder\Controller\MoveBlockController.                                            
 ------ ------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Form/MoveBlockForm.php                                                                                                     
 ------ ------------------------------------------------------------------------------------------------------------------------------- 
  17     Class Drupal\layout_builder_restrictions\Form\MoveBlockForm extends @internal class Drupal\layout_builder\Form\MoveBlockForm.  
 ------ ------------------------------------------------------------------------------------------------------------------------------- 

 [ERROR] Found 3 errors                                                                                                 

Drupal-Rector Audit of Drupal deprecations

 [OK] Rector is done!                                                                                                   

Audit of deprecated PHP <8.3 calls

If no errors are listed below, php-compatibility did not find any.

...................................... 38 / 38 (100%)


Time: 408ms; Memory: 12MB

jQuery 4 compatibility: List of all custom JavaScript files

Any files listed below should be reviewed for jQuery 4 compatibility

web/modules/contrib/layout_builder_restrictions/modules/layout_builder_restrictions_by_region/js/display_mode_form.js

Diff for updating coreversionrequirement

diff --git a/layout_builder_restrictions.info.yml b/layout_builder_restrictions.info.yml
index 6f3d7d5..794c958 100644
--- a/layout_builder_restrictions.info.yml
+++ b/layout_builder_restrictions.info.yml
@@ -1,5 +1,5 @@
 name: Layout Builder Restrictions
-core_version_requirement: ^9.3 || ^10
+core_version_requirement: ^10 || ^11
 description: 'Manage which fields & layouts are available in Layout Builder'
 type: module
 package: 'Layout Builder'
diff --git a/modules/layout_builder_restrictions_by_region/layout_builder_restrictions_by_region.info.yml b/modules/layout_builder_restrictions_by_region/layout_builder_restrictions_by_region.info.yml
index b04effc..8dbe672 100644
--- a/modules/layout_builder_restrictions_by_region/layout_builder_restrictions_by_region.info.yml
+++ b/modules/layout_builder_restrictions_by_region/layout_builder_restrictions_by_region.info.yml
@@ -1,5 +1,5 @@
 name: Layout Builder Restrictions By Region
-core_version_requirement: ^9.3 || ^10
+core_version_requirement: ^10 || ^11
 description: 'Restricts layouts and blocks per layout region'
 type: module
 package: 'Layout Builder'
mark_fullmer’s picture

Version: 8.x-2.x-dev » 3.x-dev

mark_fullmer’s picture

Status: Active » Fixed

mark_fullmer’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.