Pass entity through AJAX request

Created on 7 March 2022, almost 3 years ago
Updated 4 July 2024, 6 months ago

Problem/Motivation

I need a reference to the current entity in my entity reference selection handler to be able to do things like exclude the current entity.

Steps to reproduce

Set a break in the default selection handler while the Autocomplete Deluxe widget is configured. Try doing an autocomplete and see that "entity" is not something passed in the "$selection_settings".

Proposed resolution

Work is being done to fix this in the core entity reference handling ( https://www.drupal.org/project/drupal/issues/2826826 πŸ› Entity autocomplete widget does not pass along entity to AJAX request Fixed ). Mirror those changes in this module to keep pace.

Remaining tasks

  • βœ… File an issue
  • βœ… Addition/Change/Update/Fix
  • βž– Testing to ensure no regression
  • βž– Automated unit testing coverage
  • βž– Automated functional testing coverage
  • βž– UX/UI designer responsibilities
  • βž– Readability
  • βž– Accessibility
  • βž– Performance
  • βž– Security
  • βž– Documentation
  • βž– Code review by maintainers
  • βž– Full testing and approval
  • βž– Credit contributors
  • βž– Review with the product owner
  • βž– Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code (miscellaneous)

Created by

πŸ‡ΊπŸ‡ΈUnited States rwohleb

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024