Use plugin configuration of subshops in Shopware 6

Viewed 59

How can i get the config value of an sales-channel?

I am doing this:

$this->systemConfigService->get('pluginName.config.enable')

but this call returned only the All Sales Channels config value.

How can I get the config value of a particular sales channel?

1 Answers

The second argument of the get method takes the id of a sales_channel entity.

public function get(string $key, ?string $salesChannelId = null)
Related