/** * Return useable attribute ids * * @param string[] $attributeCodes * * @return integer[] */ protected function getAttributeIds($attributeCodes = null) { // as now only attributes usable as grid filters are usable in the grid, // we need to add the variant group axes (even if they are not usable as grid filter) // as usable in the grid (to be displayed in the columns) $attributeIds = array_merge($this->attributeRepository->getAttributeIdsUseableInGrid($attributeCodes), $this->getAttributeIdsFromProductGroupAxes()); return $attributeIds; }
/** * Return useable attribute ids * * @param string[] $attributeCodes * * @return integer[] */ protected function getAttributeIds($attributeCodes = null) { $attributeIds = $this->attributeRepository->getAttributeIdsUseableInGrid($attributeCodes); return $attributeIds; }