if ($element->
getData()->
get('image'
)) { $elementArray['data'
]['image'
] =
$this->converter->
convertMediaStruct($element->
getData()->
get('image'
));
$elementArray['data'
]['images'
] =
$elementArray['data'
]['image'
]['thumbnails'
];
} elseif ($element->
getData()->
get('media'
)) { $elementArray['data'
]['media'
] =
$this->converter->
convertMediaStruct($element->
getData()->
get('media'
));
} break;
case ManufacturerSliderComponentHandler::COMPONENT_NAME:
/** @var Manufacturer $manufacturer */
foreach ($element->
getData()->
get('manufacturers'
) as $manufacturer) { $manufacturerArray =
$this->converter->
convertManufacturerStruct($manufacturer);
$manufacturerArray['link'
] =
$this->config->
get('baseFile'
) . '?controller=listing&action=manufacturer&sSupplier=' .
$manufacturer->
getId();
$manufacturerArray['website'
] =
$manufacturer->
getLink();
$elementArray['data'
]['values'
][$manufacturer->
getId()] =
$manufacturerArray;
} break;
case BlogComponentHandler::COMPONENT_NAME:
$entries =
[];
foreach ($element->
getData()->
get('entries',
[]) as $blog) {