You are here

protected function Price::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/Price.php, line 32

Class

Price
Defines a commerce_price field mapper.

Namespace

Drupal\commerce_feeds\Feeds\Target

Code

protected function prepareValue($delta, array &$values) {
  parent::prepareValue($delta, $values);
  $values['currency_code'] = $this->configuration['currency_code'];
}