public function FeedsItem::setValue in Feeds 8.3
Overrides \Drupal\Core\TypedData\TypedData::setValue().
Parameters
array|null $values: An array of property values.
Overrides EntityReferenceItem::setValue
File
- src/
Plugin/ Field/ FieldType/ FeedsItem.php, line 38
Class
- FeedsItem
- Plugin implementation of the 'feeds_item' field type.
Namespace
Drupal\feeds\Plugin\Field\FieldTypeCode
public function setValue($values, $notify = TRUE) {
if (isset($values['url']) && empty($values['url'])) {
// Set url explicitly to NULL to prevent validation errors.
$values['url'] = NULL;
}
return parent::setValue($values, $notify);
}