/** @var CurrencyEntity $currency */
$currency =
$salesChannel->
getCurrency();
/** @var CurrencyCollection $currencies */
$currencies =
$salesChannel->
getCurrencies();
/** @var SalesChannelDomainCollection $domains */
$domains =
$salesChannel->
getDomains();
$data[] =
[ $salesChannel->
getId(),
$salesChannel->
getName(),
$salesChannel->
getActive() ? 'active' : 'inactive',
$salesChannel->
isMaintenance() ? 'on' : 'off',
$language->
getName(),
$languages->
map(fn (LanguageEntity
$language) =>
$language->
getName()),
$currency->
getName(),
$currencies->
map(fn (CurrencyEntity
$currency) =>
$currency->
getName()),
$domains->
map(fn (SalesChannelDomainEntity
$domain) =>
$domain->
getUrl()),
];
} if ($input->
getOption('output'
) === 'json'
) { return $this->
renderJson($output,
$headers,
$data);
}