Log in
Model

CartRepository

Magento\GiftMessage\Model\CartRepository

What it does

This class manages gift messages for shopping carts.

Developers use it to retrieve existing gift messages from a cart or save new gift messages to a cart, with validation to ensure the cart contains physical items and that gift messages are enabled for the store.

Public Methods

  • get()
  • save()