I created a backend configuration for my custom plugin
/app/code/Sostanza/LiveHelp/etc/adminhtml/system.xml
/app/code/Sostanza/LiveHelp/Block/Button.php
I need to get the value of a saved option and I already have a Helper class where I can read the value I need.
I have my helper in
/app/code/Sostanza/LiveHelp/Helper/Data.php
https://pastebin.com/JAUWX41c (Max 2 links with my reputation)
But if in the Button.php I add
Sostanza\LiveHelp\Helper\Data $data
The config section doesn't get rendered anymore I tried also to inject other stuff, but it doesn't work. Of course I ran "magento setup:upgrade" and deleted cache/generation folders.
Thank you so much