interface StorefrontSessionInterface (View source)

Methods

string
getSessionKey()

Return the session key for carts.

setChannel(Channel $channel)

Set the cart session channel.

setCurrency(Currency $currency)

Set the cart session currency.

setCustomerGroups(Collection $customerGroups)

Set the store front session customer group

setCustomerGroup(CustomerGroup $customerGroup)

Set the Customer Group

getCurrency()

Return the current currency.

getChannel()

Return the current channel.

Collection|null
getCustomerGroups()

Return the current customer groups

setCustomer(Customer $customer)

Set the session customer.

Customer|null
getCustomer()

Return the current customer.

Details

string getSessionKey()

Return the session key for carts.

Return Value

string

StorefrontSessionInterface setChannel(Channel $channel)

Set the cart session channel.

Parameters

Channel $channel

Return Value

StorefrontSessionInterface

StorefrontSessionInterface setCurrency(Currency $currency)

Set the cart session currency.

Parameters

Currency $currency

Return Value

StorefrontSessionInterface

StorefrontSessionInterface setCustomerGroups(Collection $customerGroups)

Set the store front session customer group

Parameters

Collection $customerGroups

Return Value

StorefrontSessionInterface

StorefrontSessionInterface setCustomerGroup(CustomerGroup $customerGroup)

Set the Customer Group

Parameters

CustomerGroup $customerGroup

Return Value

StorefrontSessionInterface

Currency getCurrency()

Return the current currency.

Return Value

Currency

Channel getChannel()

Return the current channel.

Return Value

Channel

Collection|null getCustomerGroups()

Return the current customer groups

Return Value

Collection|null

StorefrontSessionInterface setCustomer(Customer $customer)

Set the session customer.

Parameters

Customer $customer

Return Value

StorefrontSessionInterface

Customer|null getCustomer()

Return the current customer.

Return Value

Customer|null