getType()) { $item->setName(null); $item->setValue($object->name); } } public function getFieldsForGetAttributeVariantI18nList($object, $item) { parent::getFieldsForGetAttributeVariantI18nList($object, $item); if (null === $item->getType()) { $object->name = stWebApi::formatData($item->getValue(), 'string'); } } }