$property =
$option['id'
] ?:
$option['name'
];
throw new CustomValidationException(sprintf('Passed option "%s" does not exist in the configurator set of the product',
$property));
} $options->
add($available);
} if ($options->
count() === 0
) { throw new CustomValidationException('No available option exists'
);
} $this->
getVariantResource()->
createImageMappingForOptions( $options,
$image );
} } /**
* Translate the whole product array.
*
* @return array
*/