Closed (fixed)
Project:
File Encrypt
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Jan 2026 at 00:29 UTC
Updated:
27 Jan 2026 at 03:37 UTC
Jump to comment: Most recent
In #3461614: Automated Drupal 11 compatibility fixes for file_encrypt updated to support Drupal 11 but the config form alterations will need to be made to support D11 structure. Best to follow field_encrypt approach https://git.drupalcode.org/project/field_encrypt/-/tree/4.x?ref_type=heads.
Also need to update the tests once the updates are made.
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
Comment #2
dmundraThe question is does 11.2 need support or can we skip straight to 11.3?
Comment #4
nickolajConverted procedural hooks to OOP using Drupal 11 Hook attributes. Moved hooks to `src/Hook/FileEncryptHooks.php` following the field_encrypt pattern, updated services.yml with autowiring and skip_procedural_hook_scan, and updated core_version_requirement to `^10.3 || ^11`.
https://git.drupalcode.org/issue/file_encrypt-3569417/-/merge_requests/1
Comment #5
dmundraThank you @nickolaj. I see you closed the merge request, can you re-open it and target 2.0.x branch or create a new one?
I also got into a rabbit hole working on this and I looked at this update https://www.drupal.org/node/3386675 that will help make the encryption profile configuration work in Drupal 11. With that we might not need to go to hooks just yet and instead have the basics working first (with tests passing) and then do the hooks after that.
Comment #7
dmundraLooking https://git.drupalcode.org/project/field_defaults/-/blob/2.1.x/tests/src... for ideas on test updates
Comment #8
dmundraNeed to also figure out field storage vs field config. Seems like replacing it is causing issues.
Comment #9
dmundraReset field storage configuration and the tests are now passing except for the image one which is this issue #3496795: Image styles not working with encrypted Image file fields. I can confirm that image styles don't seem to work in Drupal 11 but sometimes I get to work (see #3516802: VULN: Information Disclosure (Failure to encrypt) and silent Data Corruption)
Comment #10
dmundraComment #11
dmundra@nickolaj I am going to create a new issue to work on the hook changes. For now this as achieved the need to get the config working in Drupal 11 and tests are mostly passing now.
Comment #13
dmundraComment #14
dmundraNew issue #3569775: Update to Drupal 11 new hook approach