# Backend abfragen in static function onPostDispatch

**URL:** <https://forum.shopware.com/t/backend-abfragen-in-static-function-onpostdispatch/23695>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [20. November 2014 um 10:24 UTC](https://forum.shopware.com/t/backend-abfragen-in-static-function-onpostdispatch/23695 "2014-11-20T10:24:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![myGreatShop](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@myGreatShop](https://forum.shopware.com/u/myGreatShop)\
**Post date:** [20. November 2014 um 10:24 UTC](https://forum.shopware.com/t/backend-abfragen-in-static-function-onpostdispatch/23695/1 "2014-11-20T10:24:33Z")

</div>

Hallo zusammen, wie kann ich in meinem Plugin in der static function onPostDispatch(Enlight\_Event\_EventArgs $args) abfragen, ob ich Backend oder im Frontend bin? Danke euch

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [20. November 2014 um 10:46 UTC](https://forum.shopware.com/t/backend-abfragen-in-static-function-onpostdispatch/23695/2 "2014-11-20T10:46:17Z")

</div>

Über den request kommst du an das modul (backend/frontend) per getModuleName(). Viele Grüße
