# !EventComponentHandler kein Eventfilter in Shopware 5.3

**URL:** https://forum.shopware.com/t/eventcomponenthandler-kein-eventfilter-in-shopware-5-3/48356
**Category:** Programmierung
**Created:** [19. September 2017 um 13:00 UTC](https://forum.shopware.com/t/eventcomponenthandler-kein-eventfilter-in-shopware-5-3/48356 "2017-09-19T13:00:48Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![netzperfekt](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/netzperfekt/32/7765_2.png) [@netzperfekt](https://forum.shopware.com/u/netzperfekt)
#### Post date: [22. August 2018 um 06:35 UTC](https://forum.shopware.com/t/eventcomponenthandler-kein-eventfilter-in-shopware-5-3/48356/14 "2018-08-22T06:35:57Z")

</div>

Für die Nachwelt:

> $this-\>subscribeEvent(‚Shopware\_Emotion\_Collect\_Emotion\_Component\_Handlers‘,&nbsp; ‚registerEmotionComponentHandler‘);
> 
> public function registerEmotionComponentHandler(\Enlight\_Event\_EventArgs $args)  
> {  
> &nbsp;&nbsp; &nbsp;$result = new ArrayCollection();  
> &nbsp; &nbsp; $result-\>add(new EmotionComponentHandler());
> 
> &nbsp; &nbsp; return $result;  
> }

(Natürlich muss der _EmotionComponentHandler_ ebenfalls implementiert sein, siehe z.B.&nbsp;[Custom shopping world elements](https://developers.shopware.com/developers-guide/custom-shopping-world-elements/#shopware-5.3-and-above)

&nbsp;

---

_[View the full topic](https://forum.shopware.com/t/eventcomponenthandler-kein-eventfilter-in-shopware-5-3/48356)._
