# How do I pass a value from a subscriber.php class to my html.twig file?

**URL:** <https://forum.shopware.com/t/how-do-i-pass-a-value-from-a-subscriber-php-class-to-my-html-twig-file/88363>\
**Category:** Shopware 6 (English)\
**Created:** [15. Juni 2021 um 15:31 UTC](https://forum.shopware.com/t/how-do-i-pass-a-value-from-a-subscriber-php-class-to-my-html-twig-file/88363 "2021-06-15T15:31:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [15. Juni 2021 um 15:31 UTC](https://forum.shopware.com/t/how-do-i-pass-a-value-from-a-subscriber-php-class-to-my-html-twig-file/88363/1 "2021-06-15T15:31:36Z")

</div>

I have created a Subscriber.php file that assigns values from config.xml file to the css variables using the following tutorial:

> **[Add SCSS variables](https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-scss-variables#overview)**

I want to pass these variables to inline css in my index.html.twig file. Can someone help me out as to how I can get this done?

---

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [16. Juni 2021 um 15:10 UTC](https://forum.shopware.com/t/how-do-i-pass-a-value-from-a-subscriber-php-class-to-my-html-twig-file/88363/3 "2021-06-16T15:10:59Z")

</div>

That is not working for me.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/a/a92a94ceea67a9e5f96b1371327bc03f3118d806.png)  
This is the code that I have in my Subscriber file. I want the variables $configPlugintextcolor and $configPluginfontsize to be accessible in my twig file.

When I do a dump in my index.html.twig file, I get this on the storefront:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/5/5ded3e12775f6f83388a3694c18356f7ae8d4a0e.png)  
I tried searching via ctrl+f in the dump but the variables are still not there  
This is my index.html.twig file for reference:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/3/342027fce623713868503faff5d4c15d63e796f8.png)
