thrownew\InvalidArgumentException(sprintf("The provided field %s does not exist as a property path on the %s entity having ID %s.",$field,$entity->getEntityTypeId(),$entity->id()));
}
if(empty($metadata['entities'])){
thrownew\RuntimeException(sprintf("The provided field %s does not resolve for entities to be saved from the %s entity having ID %s.",$field,$entity->getEntityTypeId(),$entity->id()));
thrownew\InvalidArgumentException(sprintf("The provided field %s does not resolve to a field on the %s entity having ID %s.",$field,$entity->getEntityTypeId(),$entity->id()));
}
if($valuesinstanceofListInterface){
$values=$values->getValue();
}
elseif(!is_array($values)){
$values=[$values];
}
// Apply configured filters and normalize the array of values.
// Try to set the value. If that attempt fails, then it would throw an
// exception, and the exception would be logged as an error.
$update_target->setValue($value);
if(empty($metadata['entities'])){
thrownew\LogicException(sprintf("The provided field %s does not resolve for entities to be saved from the %s entity having ID %s.",$field,$entity->getEntityTypeId(),$entity->id()));
// The property path does not exist, thus the provided field is not a
// valid argument.
thrownew\InvalidArgumentException(sprintf("The provided field %s does not exist as a property path on the %s entity having ID %s.",$field,$entity->getEntityTypeId(),$entity->id()));