class AddressObserver (View source)

Methods

void
creating(Address $address)

Handle the Address "creating" event.

void
updating(Address $address)

Handle the Address "updating" event.

void
ensureOnlyOneDefaultShipping(Address $address)

Ensures that only one default shipping address exists.

void
ensureOnlyOneDefaultBilling(Address $address)

Ensures that only one default billing address exists.

Details

void creating(Address $address)

Handle the Address "creating" event.

Parameters

Address $address

Return Value

void

void updating(Address $address)

Handle the Address "updating" event.

Parameters

Address $address

Return Value

void

protected void ensureOnlyOneDefaultShipping(Address $address)

Ensures that only one default shipping address exists.

Parameters

Address $address

The address that will be saved.

Return Value

void

protected void ensureOnlyOneDefaultBilling(Address $address)

Ensures that only one default billing address exists.

Parameters

Address $address

The address that will be saved.

Return Value

void