Install
Works with Drupal: ^10.6 || ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
17.01 KB
MD5: 278a881d1ff33b896d18a94e90c732d5
SHA-1: 54a935cc2320d75f0f9b97643f24280c2930d663
SHA-256: f4c1660e61aaf407e0c1a8cdaafa68e142b25e2eb4fe1721bcd3d1758af960b8
Download zip
29.63 KB
MD5: 7a62b1adf738d4b6c4b0b71dbb29eb7b
SHA-1: 2fd23843506b4904a8a991497e28b9aebcebbd2e
SHA-256: 09b4071cd411b532e2de79593211641511c29a70de97f5027564b1c474bcc394
Release notes
Drupal 9 support dropped
Bug fixes
- #3502788: Not possible to have multiple bundle specific patterns for the same entity type - Not possible to have multiple bundle-specific patterns for the same entity type. Pattern resolution was rewritten: patterns are now evaluated per entity in weight order (top of the patterns list wins, matching pathauto), so a bundle-specific pattern can be combined with a catch-all for the same entity type. Resolution is shared by all three label paths (autocomplete suggestions, select/options widgets, and initial autocomplete field values) so they always agree, patterns are loaded once per request instead of per entity, and the autocomplete matcher now honors the field's match_limit setting. Note: on sites with multiple patterns for one entity type, precedence changed from highest-weight-wins to first-match-from-the-top-of-the-list; single-pattern setups are unaffected.
- #3555426: Error: Call to a member function getFieldStorageDefinition() on null - Error: Call to a member function getFieldStorageDefinition() on null. The options-list alter hook now safely ignores invocations whose context lacks a valid field definition (e.g. from the datafield module).
- #3556152: Strip HTML tags from the label for display in the autocomplete widget - Strip HTML tags from the label for display in the autocomplete widget. Initial field values now get the same sanitization (strip tags, decode entities, normalize whitespace) as selected suggestions, so patterns containing HTML no longer show raw markup on form load.
- #3565973: Entity types not appearing in list - Entity types not appearing in list. Removed the canonical-URL requirement when building the pattern type list, so entity types without a canonical route (e.g. Commerce product variations) can now have patterns.
- Fixed the pattern field never appearing on the add form (broken AJAX replace method, and no empty option on the pattern type select), and made the add/edit/duplicate/delete dialogs draggable.
Tasks
- #3597767: Automated Drupal 12 compatibility fixes for entity_reference_patterns 1.0.x-dev - Automated Drupal 12 compatibility fixes. Hook implementations converted to an OOP #[Hook] class with #[LegacyHook] procedural wrappers; core_version_requirement updated to ^10.6 || ^11.3 || ^12.
- #3368768: Fix the issues reported by phpcs - Fix the issues reported by phpcs. Full Drupal/DrupalPractice coding-standards cleanup: docblocks, dependency injection in the hook service, hook_options_list_alter() renamed to optionsListAlter(), null coalesce, whitespace, and corrected copy-pasted type hints.