class AttributeEventContainer

Class AttributeEventContainer is injected as alligator.attribute.event.container. This container is connecting AttributeManager manager to other services

Methods

__construct(ContainerInterface $container)

No description

dispatchGenerateAttrTranslationSignal(Attribute $attribute)

Dispatch event to generate translations for new attribute

dispatchUpdateAttrTranslationSignal(mixed $diff, string $locale = null)

Dispatch event to update attribute translations

dispatchDeleteAttrTranslationSignal(mixed $keys)

Dispatch event to remove provided translations

dispatchProductGroupsUpdateEvent(ProductGroupEvent $productGroupEvent)

No description

dispatchGenerateCategoryFilter(mixed $attributeSet, String $categoryName)

Dispatch event

array
findAllAttributeSets()

Find all attribute sets(with attributes)

saveAttributeSet(mixed $attrSet)

Saving attribute set with attributes from CSV

saveAttributeSets(array $array)

Save multiple entities

array
getExportSettings()

Get only export settings for attribute entity

array
getAllLanguages()

Find all languages

string
getDefaultLanguageLocale()

Retrieve locale for default language

string
translateAttributeEntities(string $value, string $locale)

Translate attribute value for provided id(used in jqgrid on edit attributes)

updateAttrValueTranslation(array $content)

Update translations for attribute

dispatchProductSearchOptionsGenerate(int $id)

Signal event to update search options on product

Details

at line 31
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 41
dispatchGenerateAttrTranslationSignal(Attribute $attribute)

Dispatch event to generate translations for new attribute

Parameters

Attribute $attribute

at line 52
dispatchUpdateAttrTranslationSignal(mixed $diff, string $locale = null)

Dispatch event to update attribute translations

Parameters

mixed $diff
string $locale

at line 62
dispatchDeleteAttrTranslationSignal(mixed $keys)

Dispatch event to remove provided translations

Parameters

mixed $keys

at line 72
EventWithResult|Event dispatchProductGroupsUpdateEvent(ProductGroupEvent $productGroupEvent)

Parameters

ProductGroupEvent $productGroupEvent

Return Value

EventWithResult|Event

at line 83
dispatchGenerateCategoryFilter(mixed $attributeSet, String $categoryName)

Dispatch event

Parameters

mixed $attributeSet
String $categoryName

at line 96
array findAllAttributeSets()

Find all attribute sets(with attributes)

Return Value

array

at line 108
AttributeSet saveAttributeSet(mixed $attrSet)

Saving attribute set with attributes from CSV

Parameters

mixed $attrSet

Return Value

AttributeSet

at line 120
AttributeSet saveAttributeSets(array $array)

Save multiple entities

Parameters

array $array

Return Value

AttributeSet

at line 130
array getExportSettings()

Get only export settings for attribute entity

Return Value

array

at line 140
array getAllLanguages()

Find all languages

Return Value

array

at line 150
string getDefaultLanguageLocale()

Retrieve locale for default language

Return Value

string

at line 163
string translateAttributeEntities(string $value, string $locale)

Translate attribute value for provided id(used in jqgrid on edit attributes)

Parameters

string $value Translation key
string $locale

Return Value

string

at line 173
updateAttrValueTranslation(array $content)

Update translations for attribute

Parameters

array $content

at line 183
dispatchProductSearchOptionsGenerate(int $id)

Signal event to update search options on product

Parameters

int $id