Config/main.php Settings For Widget Extension?

I am writing a widget extension that requires a developer’s API key. I would like to be able to define the API key in config/main.php. Is this possible? If so, how do I use the settings in my widget?

Check out params. It’s a top-level section of your config - your app property. You then can access it as: