Skip to content

Events

You are viewing the next version (v6.7) of the documentation.
Click here to switch to the stable version (v6.6), or use the version switcher on the left to navigate between versions.

Events

  • An event must always implement the \Shopware\Core\Framework\Event\ShopwareEvent interface.
  • Events thrown in the context of a sales channel must always implement the interfaces ShopwareSalesChannelEvent and Shopware\Core\Framework\Event\SalesChannelAware.
  • Events are mostly used to allow developers to load more data. They should, as a rule, not interfere with the program flow. The decoration pattern is intended for influencing the program flow.