use Shopware\Bundle\EmotionBundle\Struct\ElementViewport;
use Shopware\Bundle\EmotionBundle\Struct\Library\Component;
use Shopware\Bundle\StoreFrontBundle\Gateway\DBAL\Hydrator\Hydrator;
class EmotionElementHydrator extends Hydrator
{ /**
* @return Element
*/
public function hydrate(array
$data, array
$config =
[], array
$viewports =
[]) { $element =
$this->
assignData($data);
$this->
assignComponent($element,
$data);
$this->
assignConfig($element,
$config);
$this->
assignViewports($element,
$viewports);
return $element;
} /**
* @return Element
*/