Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
# Summary
Allow prepopulating any Entity reference field via URL
# Project URL
https://www.drupal.org/project/entityreference_prepopulate
# Where is the code?
https://github.com/mccrodp/entityreference_prepopulate/tree/8.x-1.x
# Estimated completion date
(If known, when is this module targeted for completion?)
# Dependencies
None
# Who's doing the port?
mccrodp, with limited voluntary time.
# What help do they need?
Needs some questions answered or time to research more.
E.g.
- Is Ctools still needed as soft dependency? i.e. - Will core plugins in D8 do everything needed instead and if so are there any similar examples providing the same functionality as D7 ctools plugins?
- Where was the code for
EntityReference_BehaviorHandler_Abstract
class moved to in D8 [extended in behavior plugin in D7] - Any other useful info for the port referring to changes in D8
# D8 roadmap
https://www.drupal.org/node/2361419
# Background and reference information
- Drupal 8.0.0 will be released on November 19, 2015
- News about "Porting modules and themes to Drupal 8 "
- "Drupal Module Upgrader" module. Which can do some of this automatically for you, covering many API hooks.
- Documentation about "Converting 7.x modules to 8.x"
This module is use by ERPAL for Service Providers at https://www.drupal.org/project/erpal
Comments
Comment #2
mccrodp CreditAttribution: mccrodp as a volunteer commentedMinimal start made:
https://github.com/mccrodp/entityreference_prepopulate/tree/8.x-1.x
Comment #3
mccrodp CreditAttribution: mccrodp as a volunteer commentedAdded a comment requesting info re: feasibility of D8 port due to behavior plugins: #1803064-13: Horizontal extensibility of Fields: introduce the concept of behavior plugins
EDIT: Behavior Plugins concept does not exist (yet) for D8: http://drupal.stackexchange.com/questions/187956/how-do-you-implement-be...
Comment #4
Topplestack CreditAttribution: Topplestack commentedWhat still needs to be done on this issue? Is there anyway I can lend a hand?
Comment #5
laboratory.mikeFollowing. How can I help?
Comment #6
colanIs this module still necessary in D8 now that we have support for entity references in Prepopulate? This includes the latest incarnation at #2849432: Simplify Prepopulate implementation with the Entity API.
Comment #7
knowledges33ker CreditAttribution: knowledges33ker commentedI think it is still necessary. I need functionality equivalent to node reference from url in D7. This module provides that functionality ... Hope it gets ported to D8 soon. Happy to help if I can.
Comment #8
Francewhoa@Francewhoa :) Note to myself. Updated attribution of contribution.
Comment #9
dercheffeMaybe this module can be merged in reference core field for D8?
Comment #10
jesandy CreditAttribution: jesandy commentedI wish i could help, this module is still reliable and required in Drupal 8. I was using it with drupal 7, and when it comes to D8, i barely unable to find any modules with the capabilities exactly the same as this module. Good Luck..
Comment #11
berenddeboer CreditAttribution: berenddeboer commentedI have created a module that uses the Referer field as the default value for an entity reference field: https://www.drupal.org/project/referer_to_entity_reference
Comment #12
colanI think we're covered with those two modules then.
Comment #13
joachim CreditAttribution: joachim as a volunteer commentedReferer to Entity Reference sounds like a really clever way of handling this.
However, it can't cover all cases that Entityreference prepopulate can.
For example, suppose I have an entity type 'person', with *two* references: mother and father.
On a person entity, I have a link 'add child', which takes me to the add form for the entity. RERR can't know whether to prepopulate the mother or the father field. But with ERP, the 'add child' link's query string can be set according to the sex of the current person entity.
Comment #14
thomasmurphy CreditAttribution: thomasmurphy as a volunteer commentedI agree, this is a dependency of entityreference_prepopulate_token which I've relied on heavily. Do we currently have a task list between where we are and a first release?
Comment #15
heddnI'm not sure if this should be closed or completed or what, but https://www.drupal.org/project/prepopulate now has a fully stable D8 release.
Comment #16
webchickSince this module has a viable Drupal 8 alternative, marking as "Closed (duplicate)."