Class: Entity

Entity

new Entity(entityType, bundle, id)

Given a entity type, bundle and id, this Creates a new jDrupal Entity object.
Parameters:
Name Type Description
entityType
bundle
id
Source:

Methods

delete(options) → {Promise}

Parameters:
Name Type Description
options
Source:
Returns:
Type
Promise

get(prop, delta) → {*}

Parameters:
Name Type Description
prop
delta
Source:
Returns:
Type
*

getBundle() → {*}

Source:
Returns:
Type
*

getEntityKey(key) → {null}

Parameters:
Name Type Description
key
Source:
Returns:
Type
null

getEntityType() → {*}

Source:
Returns:
Type
*

id() → {null}

Source:
Returns:
Type
null

isNew() → {boolean}

Source:
Returns:
Type
boolean

label() → {null}

Source:
Returns:
Type
null

language() → {*}

Source:
Returns:
Type
*

load() → {Promise}

Source:
Returns:
Type
Promise

postDelete(options) → {Promise}

Parameters:
Name Type Description
options
Source:
Returns:
Type
Promise

postLoad(options) → {Promise}

Parameters:
Name Type Description
options
Source:
Returns:
Type
Promise

postSave(xhr) → {Promise}

Parameters:
Name Type Description
xhr
Source:
Returns:
Type
Promise

preDelete(options) → {Promise}

Parameters:
Name Type Description
options
Source:
Returns:
Type
Promise

preLoad(options) → {Promise}

Parameters:
Name Type Description
options
Source:
Returns:
Type
Promise

preSave(options) → {Promise}

Parameters:
Name Type Description
options
Source:
Returns:
Type
Promise

save() → {Promise}

Source:
Returns:
Type
Promise

set(prop, delta, val)

Parameters:
Name Type Description
prop
delta
val
Source:

stringify() → {String}

Source:
Returns:
Type
String