assignViewports example

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 */
    private function assignData(array $data)
    {
        $element = new Element();

        
Home | Imprint | This part of the site doesn't use cookies.