By megachriz on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-3.x
Introduced in version:
8.x-3.0-beta4
Issue links:
Description:
EntityProcessorBase::clearTarget() signature used to be this:
protected function clearTarget(EntityInterface $entity, TargetInterface $target, $target_name)
Now it is:
protected function clearTarget(FeedInterface $feed, EntityInterface $entity, TargetInterface $target, $target_name)
So a parameter is added to the beginning of the method. The method now needs a feed object in order to pass it to the FeedsTarget plugin. \Drupal\feeds\Plugin\Type\Target\TargetInterface namely got a new method with the same name: clearTarget():
/**
* Clears the target on an object.
*
* @param \Drupal\feeds\FeedInterface $feed
* The feed object.
* @param \Drupal\Core\Entity\EntityInterface $entity
* The target object.
* @param string $target
* The name of the target to unset.
*/
public function clearTarget(FeedInterface $feed, EntityInterface $entity, string $target);
Impacts:
Module developers