class CustomerGroupObserver (View source)

Methods

void
created(CustomerGroup $customerGroup)

Handle the Language "created" event.

void
updated(CustomerGroup $customerGroup)

Handle the CustomerGroup "updated" event.

void
deleted(CustomerGroup $customerGroup)

Handle the CustomerGroup "deleted" event.

void
forceDeleted(CustomerGroup $customerGroup)

Handle the CustomerGroup "forceDeleted" event.

void
ensureOnlyOneDefault(CustomerGroup $savedCustomerGroup)

Ensures that only one default CustomerGroup exists.

Details

void created(CustomerGroup $customerGroup)

Handle the Language "created" event.

Parameters

CustomerGroup $customerGroup

Return Value

void

void updated(CustomerGroup $customerGroup)

Handle the CustomerGroup "updated" event.

Parameters

CustomerGroup $customerGroup

Return Value

void

void deleted(CustomerGroup $customerGroup)

Handle the CustomerGroup "deleted" event.

Parameters

CustomerGroup $customerGroup

Return Value

void

void forceDeleted(CustomerGroup $customerGroup)

Handle the CustomerGroup "forceDeleted" event.

Parameters

CustomerGroup $customerGroup

Return Value

void

protected void ensureOnlyOneDefault(CustomerGroup $savedCustomerGroup)

Ensures that only one default CustomerGroup exists.

Parameters

CustomerGroup $savedCustomerGroup

The customer group that was just saved.

Return Value

void