Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
58.61 KB
MD5: 5333929ffe5553ca9fb0c95420cc01c7
SHA-1: 6aa1a939d708641fc7a986a08cb9a10c91cdb9d2
SHA-256: 35eb802e76ecb28c198e33b524ccf48bb548c8d7c932bbfb20ee39e5cc7f87a3
Download zip
102.16 KB
MD5: e616b528e3e5b59e5872740bd925d06e
SHA-1: a2d993414cf3644a21e9ff8d6904306114cd42c5
SHA-256: 54e31905edb38b07c857994f2abf34b2a121d9d3b5b59042664714bac07a3af0
Release notes
This release modernizes the code base and removes the deprecations that block Drupal 12. There are no functional changes.
Profile now requires Drupal 10.3 or later. Sites on Drupal 10.0–10.2 should stay on 8.x-1.15.
Changes
- #3631896: Modernize code: OOP hooks, constructor property promotion and attributes
- Hooks moved to classes in
src/Hook, with#[LegacyHook]shims for Drupal 10. profile.tokens.incis removed; token hooks live inProfileTokensHooks.template_preprocess_profile()is replaced by an initial preprocess callback on Drupal 11.3+.- Plugins use attributes instead of annotations (field widget, entity reference selection, views relationship and argument defaults).
- New kernel test coverage for the hooks.
- Hooks moved to classes in
API changes
profile_form_field_config_edit_form_submit()and the_profile_migration_*()helpers are removed. They are now methods onDrupal\profile\Hook\ProfileHooks.