private function updateElements(AbstractClassContent $content, array $elementsData)
    {
        if ($content instanceof ContentSet) {
            $elements = $this->prepareElements($elementsData, false);
            $page = $this->isMainZone($content);
            $this->updateContentSetElements($content, $elements, $page);
        } else {
            $elements = $this->prepareElements($elementsData);
            $this->updateContentElements($content, $elements);
        }

        return $this;
    }
private function updateElements(AbstractClassContent $content, array $elementsData)
    {
        if ($content instanceof ContentSet) {
            $elements = $this->prepareElements($elementsData, false);
            $page = $this->isMainZone($content);
            $this->updateContentSetElements($content, $elements, $page);
        } else {
            $elements = $this->prepareElements($elementsData);
            $this->updateContentElements($content, $elements);
        }

        return $this;
    }
private function updateElements ( AbstractClassContent $ content , array $ elementsData ) { if ( $ content instanceof ContentSet ) { $ elements = $ this -> prepareElements ( $ elementsData , false ) ; $ page = $ this -> isMainZone ( $ content ) ; $ this -> updateContentSetElements ( $ content , $ elements , $ page ) ; } else { $ elements = $ this -> prepareElements ( $ elementsData ) ; $ this -> updateContentElements ( $ content , $ elements ) ; } return $ this ; }
Updates provided content's elements with data

@param  AbstractClassContent $content
@param  array                $elementsData

@return ClassContentManager
Updates provided content s elements with data