Install
Works with Drupal: ^10.3 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
27.1 KB
MD5: d0e6c5acaccaaab3640eac61d4d48185
SHA-1: a9fd774ba910d78982d8dd0f26ada0160ef4fc28
SHA-256: 4dccc8cc6bc49a62d4ed357b3e4d61609b827dcd1e861765e850c8377c186680
Download zip
58.15 KB
MD5: 99c3cd8a4b0d30a714e7ccbc90184b92
SHA-1: 404ecaf6c2782dd6e2b622586ef586c71ec45244
SHA-256: 8b6281e3156796227737e3f96bf81d96803fed836f40745455f390520d8a3187
Release notes
Version 1.1.1 modernizes Entity Reference (with) Hierarchy and its ecosystem submodules (entity_reference_hierarchy_revisions, entity_reference_hierarchy_ief, and entity_reference_hierarchy_paragraphs) for Drupal 10.3, 11, and 12 (PHP 8.3+).
Key Changes
- Drupal 10.3, 11, and 12 Compatibility: Updated
core_version_requirementacross all modules to^10.3 || ^11 || ^12and set the Composer PHP requirement to>=8.3. - PHP 8 Attributes & OO Hooks: Migrated field types (
#[FieldType]), widgets (#[FieldWidget]), formatters (#[FieldFormatter]), and hooks (#[Hook]with#[LegacyHook]shims) to native PHP 8 attributes with strict typing (declare(strict_types=1);) and dependency injection. - Conflict Guard with
entity_hierarchy(#3632584): Added a Composerconflictconstraint, install/runtime requirement checks (EntityReferenceHierarchyRequirementsandhook_requirements()), and ahook_module_preinstall()guard to prevent plugin ID collisions withdrupal/entity_hierarchy. - Hierarchy Outline & Formatter Fixes:
- Clamped non-sequential depth jumps in
EntityReferenceHierarchyFieldItemListTrait::getFieldHierarchyOutline(). - Fixed
EntityReferenceHierarchyFormatterTrait::getNestedListItemElements()so unlinked labels and rendered entities are not mistaken for nesteditem_listarrays by Drupal core'sThemePreprocess::preprocessItemList(). - Fixed the
entity_reference_hierarchy_revisionsfield type identifier inhook_field_formatter_info_alter(). - Removed deprecated
_field_multiple_value_form_sort_helper()calls in multi-value form preprocess hooks.
- Clamped non-sequential depth jumps in
- Configuration Schemas: Completed configuration schemas for field storage, settings, default values, widgets, and formatters across the core module and all submodules.
- JavaScript, Static Analysis & Automated Tests: Modernized
js/tabledrag.relationship-all.jsfor Drupal core ESLint/Prettier compliance, enforced Drupal coding standards (phpcs.xml) and PHPStan level 5 (phpstan.neon), addedrequire-devtest dependencies, and added Kernel and Functional test suites.