public function BulkVariationsCreatorInterface::getArrayValueCombinations in Commerce Bulk 8
Gets combinations of an Array values.
See the function source origin .
Parameters
array $data: An array with mixed data.
array $exclude: (optional) An array with mixed data to exclude from the return.
array $all: An array of used combinations, not used combinations and their number, last variation, variation attributes ids and options:
- "last_variation": The variation on the last inline entity form array.
- "used_combinations": The already used combinations.
- "not_used_combinations": Yet not used combinations.
- "count": The number of all combinations.
- "attributes": An array with attributes ids and options:
- "ids": The array of field_name => id pairs.
- "options": The array of id => field_label pairs.
- "duplicated": The number of duplicated combinations.
- "used": The number of used combinations. combinations.
array $group: An array with mixed data.
null|string|array $value: A proxy value.
int $i: A counter.
null|string $k: A proxy array key.
null|int $c: A proxy counter.
null|string $f: A field name.
Return value
array An array of all commerce product variations' combinations.
1 method overrides BulkVariationsCreatorInterface::getArrayValueCombinations()
- BulkVariationsCreator::getArrayValueCombinations in src/
BulkVariationsCreator.php - Gets combinations of an Array values.
File
- src/
BulkVariationsCreatorInterface.php, line 313
Class
- BulkVariationsCreatorInterface
- Manages variation combinations creation.
Namespace
Drupal\commerce_bulkCode
public function getArrayValueCombinations(array $data = [], array $exclude = [], array &$all = [], array $group = [], $value = NULL, $i = 0, $k = NULL, $c = NULL, $f = NULL);