/**
  * Get attributes configuration for attribute that can be used in grid (as column or filter)
  *
  * @return array
  */
 protected function getAttributesConfig()
 {
     $attributeIds = $this->getAttributeIds();
     if (empty($attributeIds)) {
         return [];
     }
     $currentLocale = $this->getCurrentLocaleCode();
     $configuration = $this->attributeRepository->getAttributesAsArray(true, $currentLocale, $attributeIds);
     return $configuration;
 }