public function Measurement::defaultConfiguration in Commerce Feeds 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides FieldTargetBase::defaultConfiguration
File
- src/
Feeds/ Target/ Measurement.php, line 41
Class
- Measurement
- Defines a physical_measurement field mapper.
Namespace
Drupal\commerce_feeds\Feeds\TargetCode
public function defaultConfiguration() {
return [
'unit' => MeasurementType::getUnitClass($this
->getMeasurementType())::getBaseUnit(),
];
}