$this->additionalTextService =
$additionalTextService;
} /**
* {@inheritdoc}
*/
public function supports(Element
$element) { $component =
$element->
getComponent();
return $component->
getType() === self::COMPONENT_NAME
||
$component->
getConvertFunction() === self::LEGACY_CONVERT_FUNCTION;
} /**
* {@inheritdoc}
*/
public function prepare(PrepareDataCollection
$collection, Element
$element, ShopContextInterface
$context) { $type =
$element->
getConfig()->
get(self::SLIDER_TYPE_KEY, self::TYPE_STATIC_PRODUCT
);
$key = ComponentHandlerInterface::CRITERIA_KEY .
$element->
getId();
switch ($type) {