public function BulkVariationsCreatorInterface::getNotUsedAttributesCombination in Commerce Bulk 8
Gets first not used combination on a product.
Parameters
array $variations: The commerce product variations.
Return value
array|null a number of possible and duplicated and used combinations, last variation, number of duplicated combinations and an HTML list of duplicated variations labels if they are found:
- "last_variation": The variation on the last inline entity form array.
- "count": The quantity of the combinations.
- "duplicated": The number of duplicated combinations.
- "used": The number of used combinations.
- "duplications_list": HTML list of duplicated combinations if present.
- "not_used_combination": The first not used attributes combination.
1 method overrides BulkVariationsCreatorInterface::getNotUsedAttributesCombination()
- BulkVariationsCreator::getNotUsedAttributesCombination in src/
BulkVariationsCreator.php - Gets first not used combination on a product.
File
- src/
BulkVariationsCreatorInterface.php, line 208
Class
- BulkVariationsCreatorInterface
- Manages variation combinations creation.
Namespace
Drupal\commerce_bulkCode
public function getNotUsedAttributesCombination(array $variations);