modules/acm_sku/src/CartFormHelper.php
public function getFirstAttribute($attribute_set = 'default') {
    $weights = $this->getConfigurableAttributeWeights($attribute_set);
    $attributes = $weights ? array_keys($weights) : [];
    return !empty($attributes) ? reset($attributes) : '';
  }
public function getFirstAttribute($attribute_set = 'default') {
    $weights = $this->getConfigurableAttributeWeights($attribute_set);
    $attributes = $weights ? array_keys($weights) : [];
    return !empty($attributes) ? reset($attributes) : '';
  }
public function getFirstAttribute ( $ attribute_set = 'default' ) { $ weights = $ this -> getConfigurableAttributeWeights ( $ attribute_set ) ; $ attributes = $ weights ? array_keys ( $ weights ) : [ ] ; return ! empty ( $ attributes ) ? reset ( $ attributes ) : '' ; }
Get first attribute code based on weights for particular attribute set.

@param string $attribute_set
Attribute set.

@return string
First attribute code based on weights for particular attribute set.
Get first attribute code based on weights for particular attribute set .