I have one configuration field with scope as store view
in my module.
System config path: vendor/module/title
I have multiple websites with multiple store views and I want to get values of my field for each store view as an array. I can use looping for website and store views to get value for my field for each store view with below code.
$this->scopeConfig->getValue('vendor/module/title', ScopeInterface::SCOPE_STORE, $scopeCode);
and then store it in an array with store_code
or store_id
as the key.
Is there any other way I can achieve this? May be without loop?