/** * Return the list of all the family codes of the attribute. * * @param AttributeInterface $attribute * * @return string */ protected function getAttributeFamilyCodes(AttributeInterface $attribute) { $families = $attribute->getFamilies(); $familyCodes = []; foreach ($families as $family) { $familyCodes[] = $family->getCode(); } return implode(self::ITEM_SEPARATOR, $familyCodes); }