modules/acm_sku/src/Plugin/AcquiaCommerce/SKUType/Variant.php
public function getConfiguredOptions(SKU $child) {
    $sku_type = SKUType::load($this->getPluginDefinition()['id']);
    $groups = $sku_type->getThirdPartySetting('acm_sku__variant', 'attribute_groups', []);
    $configured_options = [];
    $attributes = $child->attributes->getValue();
    foreach ($attributes as $attribute) {
      if (empty($groups[$attribute['key']]['enabled'])) {
        continue;
      }
      $configured_options[] = $attribute['value'];
    }
    return $configured_options;
  }
public function getConfiguredOptions(SKU $child) {
    $sku_type = SKUType::load($this->getPluginDefinition()['id']);
    $groups = $sku_type->getThirdPartySetting('acm_sku__variant', 'attribute_groups', []);
    $configured_options = [];
    $attributes = $child->attributes->getValue();
    foreach ($attributes as $attribute) {
      if (empty($groups[$attribute['key']]['enabled'])) {
        continue;
      }
      $configured_options[] = $attribute['value'];
    }
    return $configured_options;
  }
public function getConfiguredOptions ( SKU $ child ) { $ sku_type = SKUType :: load ( $ this -> getPluginDefinition ( ) [ 'id' ] ) ; $ groups = $ sku_type -> getThirdPartySetting ( 'acm_sku__variant' , 'attribute_groups' , [ ] ) ; $ configured_options = [ ] ; $ attributes = $ child -> attributes -> getValue ( ) ; foreach ( $ attributes as $ attribute ) { if ( empty ( $ groups [ $ attribute [ 'key' ] ] [ 'enabled' ] ) ) { continue ; } $ configured_options [ ] = $ attribute [ 'value' ] ; } return $ configured_options ; }
Get the configured options for this SKU instance.

@return array
An array of the configured attributes for this SKU.
Get the configured options for this SKU instance .