FOFViewJson::_createDocumentWithHypermedia
Creates a FOFHalDocument using the provided data
Signature
protected function _createDocumentWithHypermedia(array
$data,
[FOFModel
$model = null] )
Parameters
-
$data
- The data to put in the document
-
$model
- The model of this view
Returns
- FOFHalDocument
- A HAL-enabled document