Working on #2635622: Process plugin for importing/creating files by URL, I'm close to making file entity generation work without having a new process plugin extending entity_generate (leveraging the file_copy plugin I'll introduce in that patch)... The problem with using entity_generate directly is the entity_lookup

  1. Assumes the destination field is an entity_reference (file and image fields are sufficiently entity_reference-like to be leveraged, I think), and
  2. Assumes the entity being generated is bundleable (is that a word)?

So, I think generalizing entity_lookup will save us from having a specific file_generate process plugin, and be more flexible in general.

CommentFileSizeAuthor
#2 entity_lookup_should-2765733-2.patch3.78 KBmikeryan

Comments

mikeryan created an issue. See original summary.

mikeryan’s picture

Status: Active » Needs review
StatusFileSize
new3.78 KB

How's this look?

  • mikeryan committed 7031589 on 8.x-2.x
    Issue #2765733 by mikeryan: entity_lookup should support file/image...
mikeryan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.