getAttributesByMarker
الحصول على جميع السمات مع البيانات من مجموعة السمات.
الوصف
ترجع هذه الطريقة جميع السمات مع البيانات من مجموعة السمات. ترجع وعدًا (Promise) يتم حله إلى مصفوفة من كائنات IAttributeSetsEntity.
AttributesSets.getAttributesByMarker(
marker,
langCode
);
مخطط المعلمات
المخطط
marker(مطلوب): string
علامة السمة
مثال: "productAttributes"
langCode: string
رمز اللغة. الافتراضي: "en_US"
مثال: "en_US"
أمثلة
مثال بسيط
const response = await AttributesSets.getAttributesByMarker('my-marker');
مثال مع السمات
const response = await AttributesSets.getAttributesByMarker('my-marker', 'en_US');