IrisJS

Namespace: entity

entity

Members

(static) hook_entity_access_create

Checks permission for creating an entity

This hook returns successfully only if the authPass allows for the entity provided to be created.

Source:

(static) hook_entity_access_delete

Checks permission for deleting an entity

This hook returns successfully only if the authPass allows for the entity provided to be created.

Source:

(static) hook_entity_access_edit

Checks permission for editing an entity

This hook returns successfully only if the authPass allows for the entity provided to be created.

Source:

(static) hook_entity_create

Creates an entity and saves it to the database

The hook variables should be the entity object, including fields and entity type.

Source:

(static) hook_entity_created

Event handling for when entities are created

This hook is run once an entity has been created; useful for live updates or keeping track of changes

Source:

(static) hook_entity_delete

Entity deletion hook

Deletes an entity from the database, and any other stores.

Hook variables must include an entity ID (eid) and entity type.

Source:

(static) hook_entity_deleted

Event handling for when entities are deleted

This hook is run when an entity is deleted; useful for live updates or keeping track of changes

Source:

(static) hook_entity_edit

Entity editing hook

Updates an entity in the database, and any other stores.

Hook variables must include an entity ID (eid) and entity type.

Source:

(static) hook_entity_fetch

Entity fetch hook

Source:

(static) hook_entity_presave

Entity presave processing

Before saving, implementations of this hook may make changes to the entity such as sanitization or addition of extra fields.

Source:

(static) hook_entity_query_alter

Allows altering and overriding entity fetch queries

Runs before hook_entity_fetch actually searches the database.

Source:

(static) hook_entity_updated

Event handling for when entities are updated

This hook is run when an entity is updated/edited; useful for live updates or keeping track of changes

Source:

(static) hook_entity_validate

Validates an entity

This hook returns successfully only if the entity provided passes all the checks implemented by the hook.

Source:

(static) hook_entity_view

Entity view processing

Allows for altering and overriding an entity when it is prepared for view by a user.

Source:

(static) hook_entity_view_bulk

Bulk view processing for loading many entities at once.

Source:
See:
  • hook_entity_view