Closed (fixed)
Project:
Feeds
Version:
8.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2018 at 09:03 UTC
Updated:
29 Apr 2018 at 17:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mikran commentedSmall correction to previous patch.
Comment #3
mikran commentedOops, correct patch
Comment #4
mikran commented...
Comment #5
mikran commentedComment #6
megachrizThanks for working on this!
Quick review: a target does not have to be a field target. That's why there is a TargetBase class separate from the FieldTargetBase class (as far as I know though there isn't yet a target that does not extend FieldTargetBase). I think the parameter type should be \Drupal\feeds\TargetDefinition instead, though I'm not completely sure.
Comment #7
mikran commentedOh that is true. I've now changed it to be
\Drupal\feeds\TargetDefinitionInterface[]instead.Comment #8
megachrizAt least FieldTargetBase does not return targets in all cases.
Maybe rename $target_item to $entity? That's what the implementation in FieldTargetBase does.
Comment #10
megachrizCommitted #7 with the changes suggested in #8.