vendorFieldUid] */ public $productVendorFields = []; /** * @var array An array of [productTypeUid => descriptionFieldUid] */ public $productDescriptionFields = []; /** * @var array An array of [productTypeUid => thumbnailFieldUid] */ public $productThumbnailFields = []; /** * @var array An array of [productTypeUid => imageFieldUid] */ public $productImageFields = []; /** * @var array An array of [productTypeUid => thumbnailFieldUid] */ public $variantThumbnailFields = []; /** * @var array An array of [productTypeUid => imageFieldUid] */ public $variantImageFields = []; // Methods // ========================================================================= /** * Gets the data center from the api key * * @return string|null */ public function getDataCenter () { if (!$this->apiKey) return null; $parts = explode('-', Craft::parseEnv($this->apiKey)); return end($parts); } }