backdrop-contrib / reference

Defines a field to allow Backdrop entities to reference each other.
GNU General Public License v2.0
4 stars 6 forks source link

Hooks so that we can have modules like Node Reference URL Widget, Reference Prepopulate, (Node) Reference Dialog #19

Closed herbdool closed 6 years ago

herbdool commented 7 years ago

Entity Reference has hooks so that other modules can modify the behaviour of the field in various situations. It would be good to have the hooks in place before it goes into core so there's a good foundation.

olafgrabienski commented 7 years ago

Related: UX - Provide links to add and edit references through a dialog

mikemccaffrey commented 7 years ago

@herbdool: Entity Reference has hooks so that other modules can modify the behaviour of the field in various situations. It would be good to have the hooks in place before it goes into core so there's a good foundation.

Any idea on what hooks need to be added? It would be great to know exactly how such hooks will be used, and some examples from existing reference-related modules. We can always add more hooks to core, but can't really remove them when they are there.

I'm imagining that most customizations will be implemented through contrib modules defining their own widgets and formatters that can be selected for use with a reference field, rather than messing with the default widget and formatter.

mikemccaffrey commented 6 years ago

Unfortunately, we can't have a single issue and single solution to provide all possible hooks for all possible contrib integrations. Can folks please submit separate issues for each individual hook that is desired along with info on how it will be used?