public function BulkVariationsCreatorInterface::getDuplicationsHtmlList in Commerce Bulk 8
Gets duplicated variations HTML list.
Parameters
array $variations: The commerce product variations.
Return value
array|null An array of used combinations, not used combinations and their number, last variation, variation attributes ids and options, and an HTML list of duplicated variations labels if they are found:
- "last_variation": The variation on the last inline entity form array.
- "used_combinations": The already used combinations.
- "duplicated": The number of duplicated combinations.
- "used": The number of used combinations.
- "duplications_list": HTML list of duplicated combinations if present.
- "attributes": An array with attributes ids and options:
- "ids": The array of field_name => id pairs.
- "options": The array of id => field_label pairs.
- "not_all": The maximum number of combinations to return.
1 method overrides BulkVariationsCreatorInterface::getDuplicationsHtmlList()
- BulkVariationsCreator::getDuplicationsHtmlList in src/
BulkVariationsCreator.php - Gets duplicated variations HTML list.
File
- src/
BulkVariationsCreatorInterface.php, line 247
Class
- BulkVariationsCreatorInterface
- Manages variation combinations creation.
Namespace
Drupal\commerce_bulkCode
public function getDuplicationsHtmlList(array $variations);