Support Drupal 11

Created on 20 May 2024, about 1 month ago

Problem/Motivation

Drupal 11 is now in beta. Let's release a version of this module with Drupal 11 support.

A deprecation scan with the Upgrade Status module notes the following:

CUSTOM PROJECTS
--------------------------------------------------------------------------------
Field Encrypt
Scanned on Mon, 05/20/2024 - 15:31.

2 errors found. 1 warning found. Avoid some manual work by using drupal-rector
for fixing issues automatically or Upgrade Rector to generate patches.

web/modules/field_encrypt/src/Form/ProcessQueueForm.php:
+-----------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status          | line | message                                                                                                                                                                      |
+-----------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Fix with
rector | 137  | Call to deprecated function watchdog_exception(). Deprecated
in drupal:10.1.0 and is removed from drupal:11.0.0. Use Use
Drupal\Core\Utility\Error::logException() instead.
 |
+-----------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
web/modules/field_encrypt/src/Plugin/QueueWorker/UpdateEntityEncryption.php:
+---------+------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status  | line | message                                                                                                                                                                                                                                      |
+---------+------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Fix now | 73   | Call to deprecated method loadRevision() of interface
Drupal\Core\Entity\EntityStorageInterface. Deprecated in
drupal:10.1.0 and is removed from drupal:11.0.0. Use
Drupal\Core\Entity\RevisionableStorageInterface::loadRevisio
n instead.
 |
+---------+------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
web/modules/field_encrypt/tests/src/Functional/ConfigurableFieldTest.php:
+----------------+------+--------------------------------------------------------------------+
| status         | line | message                                                            |
+----------------+------+--------------------------------------------------------------------+
| Check
manually | 112  | You should use assertNull() instead of assertSame(null,
$actual).
 |
+----------------+------+--------------------------------------------------------------------+
πŸ“Œ Task
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024