Skip to main content

Entity::data

This property is used to get or set entity data.

If you use [setVariable](/entity-setvariable) you have to use [getVariable](/entity-getvariable) to get results. e.g. You can't do `entity.setVariable('foo','bar')` and get the result with `entity.data.foo` as getter. You can do so clientside, but not serverside.

Property Type(s) & Attribute(s)

  • Getter - attribute should be in any format.
  • Setter - attribute should be in any format.

Example

The code below is an example about how to set a entity data by directly manipulating its "data" attribute.