class BrandEventContainer

Class BrandEventContainer is injected as alligator.brand.event.container. This container is connecting manager to other services

Methods

__construct(ContainerInterface $container)

No description

prepareSaveBrand(Brand $brand, Brand $receivedBrand)

Dispatch prepare save brand event

prepareEditBrand(Brand $brand, Brand $receivedBrand)

Dispatch prepare save brand event

mixed
getBrandsHtmlFromCache(string $locale)

Get brands html from cache

object
getTemplateEngine()

Get templating engine service

setBrandsToCache(string $brandHtml, string $locale)

Set brands html to cache

dispatchBrandHtmlEvent()

Dispatch brand cache event

dispatchBrandChangeEvent(array $brands)

Dispach brand change event

mixed
getThemeFromSession()

Get theme from session

mixed
getCurrentLocale()

Get current locale

array
getDBSettingsFields()

Get db settings fields for import/export

array
getAvailableLanguages()

Get available languages

array
getExportSettings()

Get export settings for brand

dispatchGenerateBrandTranslationSignal(Brand $brand)

Dispatch brand translation signal

dispatchDeleteBrandTranslations(array $array)

Dispatch brand delete translations event

array
dispatchProductAvailabilityChangeEvent()

Used when plugins need to change availability of products For example: not all products are available for different payment types

dispatchProductGroupsUpdateEvent(ProductGroupEvent $productGroupEvent)

Dispach product groups update event

array
findAttributeValueIdsByValues(array $values)

Find attribute value ids by values

boolean
checkIfPermalinkIsAvailable(string $permalink)

Check if permalink is available

Details

at line 37
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 47
prepareSaveBrand(Brand $brand, Brand $receivedBrand)

Dispatch prepare save brand event

Parameters

Brand $brand
Brand $receivedBrand

at line 57
prepareEditBrand(Brand $brand, Brand $receivedBrand)

Dispatch prepare save brand event

Parameters

Brand $brand
Brand $receivedBrand

at line 68
mixed getBrandsHtmlFromCache(string $locale)

Get brands html from cache

Parameters

string $locale

Return Value

mixed

at line 77
object getTemplateEngine()

Get templating engine service

Return Value

object

at line 87
setBrandsToCache(string $brandHtml, string $locale)

Set brands html to cache

Parameters

string $brandHtml
string $locale

at line 95
dispatchBrandHtmlEvent()

Dispatch brand cache event

at line 107
dispatchBrandChangeEvent(array $brands)

Dispach brand change event

Parameters

array $brands

at line 116
mixed getThemeFromSession()

Get theme from session

Return Value

mixed

at line 129
mixed getCurrentLocale()

Get current locale

Return Value

mixed

at line 148
array getDBSettingsFields()

Get db settings fields for import/export

Return Value

array

at line 157
array getAvailableLanguages()

Get available languages

Return Value

array

at line 166
array getExportSettings()

Get export settings for brand

Return Value

array

at line 175
dispatchGenerateBrandTranslationSignal(Brand $brand)

Dispatch brand translation signal

Parameters

Brand $brand

at line 184
dispatchDeleteBrandTranslations(array $array)

Dispatch brand delete translations event

Parameters

array $array

at line 194
array dispatchProductAvailabilityChangeEvent()

Used when plugins need to change availability of products For example: not all products are available for different payment types

Return Value

array

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

Dispach product groups update event

Parameters

ProductGroupEvent $productGroupEvent

Return Value

EventWithResult|Event

at line 219
array findAttributeValueIdsByValues(array $values)

Find attribute value ids by values

Parameters

array $values

Return Value

array

at line 230
boolean checkIfPermalinkIsAvailable(string $permalink)

Check if permalink is available

Parameters

string $permalink

Return Value

boolean