public function update($id, $data)
    {
        $sections = empty($data['sections']) ? [] : $data['sections'];

        return $this->_sendPayload(
            $this->_getService($this->_pageServiceKey)->updateTemplateSections($id, $sections)
        );
    }
public function update($id, $data)
    {
        $sections = empty($data['sections']) ? [] : $data['sections'];

        return $this->_sendPayload(
            $this->_getService($this->_pageServiceKey)->updateTemplateSections($id, $sections)
        );
    }
public function update ( $ id , $ data ) { $ sections = empty ( $ data [ 'sections' ] ) ? [ ] : $ data [ 'sections' ] ; return $ this -> _sendPayload ( $ this -> _getService ( $ this -> _pageServiceKey ) -> updateTemplateSections ( $ id , $ sections ) ) ; }
Update section details

@param mixed $id
@param mixed $data

@return mixed|\Zend\View\Model\ModelInterface
Update section details