Attaches resource data to a given object. The resource data is usually used to store metadata (e. g. a content type) for an object.
Parameters
| Name | Type | Description |
|---|---|---|
object |
object | function | The object that should get the given resource data. |
data |
object | The resource data that should be attached to |
Returns
The given object.
- Type
- object | function