# 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

This module is use by ERPAL for Service Providers at https://www.drupal.org/project/erpal

Comments

Francewhoa created an issue. See original summary.

mccrodp’s picture

Issue summary: View changes
Status: Active » Needs work
Related issues: +#2574395: [ctools] Chaos tool suite

Minimal start made:

  • Ran Drupalmoduleupgrader
  • Restructured code to more D8 structure
  • Renamed test module to include parent module name prefixed

https://github.com/mccrodp/entityreference_prepopulate/tree/8.x-1.x

mccrodp’s picture

Topplestack’s picture

What still needs to be done on this issue? Is there anyway I can lend a hand?

laboratory.mike’s picture

Following. How can I help?

colan’s picture

Is 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.

knowledges33ker’s picture

I 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.

Francewhoa’s picture

@Francewhoa :) Note to myself. Updated attribution of contribution.

dercheffe’s picture

Maybe this module can be merged in reference core field for D8?

jesandy’s picture

I 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..

berenddeboer’s picture

I 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

colan’s picture

Status: Needs work » Closed (duplicate)

I think we're covered with those two modules then.

joachim’s picture

Status: Closed (duplicate) » Needs work

Referer 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.

thomasmurphy’s picture

I 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?

heddn’s picture

I'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.

webchick’s picture

Status: Needs work » Closed (duplicate)

Since this module has a viable Drupal 8 alternative, marking as "Closed (duplicate)."