public function setBaseUrlToPortableData(&$data){
        $model = $this->getPortableModelRegistry()->getModel($data['model']);
        $portableObject = $model->createDataObject($data);
        $data['baseUrl'] = $model->getRegistry()->getBaseUrl($portableObject);
        return $data;
    }
public function setBaseUrlToPortableData(&$data){
        $model = $this->getPortableModelRegistry()->getModel($data['model']);
        $portableObject = $model->createDataObject($data);
        $data['baseUrl'] = $model->getRegistry()->getBaseUrl($portableObject);
        return $data;
    }
public function setBaseUrlToPortableData ( & $ data ) { $ model = $ this -> getPortableModelRegistry ( ) -> getModel ( $ data [ 'model' ] ) ; $ portableObject = $ model -> createDataObject ( $ data ) ; $ data [ 'baseUrl' ] = $ model -> getRegistry ( ) -> getBaseUrl ( $ portableObject ) ; return $ data ; }
Set the base url to a portable element data array
@param $data
@return mixed
Set the base url to a portable element data array