protected static function Price::prepareTarget in Commerce Feeds 8
Prepares a target definition.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
Return value
\Drupal\feeds\FieldTargetDefinition The target definition.
Overrides FieldTargetBase::prepareTarget
File
- src/
Feeds/ Target/ Price.php, line 24
Class
- Price
- Defines a commerce_price field mapper.
Namespace
Drupal\commerce_feeds\Feeds\TargetCode
protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
return FieldTargetDefinition::createFromFieldDefinition($field_definition)
->addProperty('number');
}