protected function Measurement::prepareValue in Commerce Feeds 8
Prepares a single value.
Parameters
int $delta: The field delta.
array $values: The values.
Overrides FieldTargetBase::prepareValue
File
- src/
Feeds/ Target/ Measurement.php, line 33
Class
- Measurement
- Defines a physical_measurement field mapper.
Namespace
Drupal\commerce_feeds\Feeds\TargetCode
protected function prepareValue($delta, array &$values) {
parent::prepareValue($delta, $values);
$values['unit'] = $this->configuration['unit'];
}