29 $config = parent::getConfig();
31 if ($this->isMultilingual) {
32 $config[
'selected'] = [];
33 foreach ($this->locales as $locale) {
34 if (array_key_exists($locale[
'key'], $this->selected)) {
35 $config[
'selected'][$locale[
'key']] = array_map([$this,
'mapSelected'], (array) $this->selected[$locale[
'key']]);
37 $config[
'selected'][$locale[
'key']] = [];
41 $config[
'selected'] = array_map([$this,
'mapSelected'], $this->selected);