You are here

public function BulkVariationsCreatorInterface::getUsedAttributesCombinations in Commerce Bulk 8

Gets used combinations on a product.

Parameters

array $variations: The commerce product variations.

Return value

array|null last variation, variation attributes ids and options and already used used attributes combinations, if they are found:

  • "last_variation": The variation on the last inline entity form array.
  • "attributes": An array with attributes ids and options:
    • "ids": The array of field_name => id pairs.
    • "options": The array of id => field_label pairs.
  • "used_combinations": The already used attributes combinations.
1 method overrides BulkVariationsCreatorInterface::getUsedAttributesCombinations()
BulkVariationsCreator::getUsedAttributesCombinations in src/BulkVariationsCreator.php
Gets used combinations on a product.

File

src/BulkVariationsCreatorInterface.php, line 225

Class

BulkVariationsCreatorInterface
Manages variation combinations creation.

Namespace

Drupal\commerce_bulk

Code

public function getUsedAttributesCombinations(array $variations);