Skip to content

Determining entity access

Available since: 1.0.0

Provided tokens

Token Description
[event] The event.
[event:entity-bundle] The bundle of the entity.
[event:entity-id] The entity ID, only available if the entity is not new.
[event:entity-type] The entity type.
[event:operation] The operation with which the entity should be accessed, e.g. "view", "update", etc.
[event:uid] The ID of the user account of the event.
[event] The event.
[event:machine-name] The machine name of the ECA event.
[session_user] The user account that dispatched the event, regardless if ECA is processing models under a different account.
[account] The user account of the event.
[entity] The entity of the event.
[ENTITY_TYPE] The entity of the event under the name of its entity type.


Restrict by entity type ID

Example: node, taxonomy_term, user

Restrict by entity bundle

Example: article, tags

Restrict by operation

Example: view, update, delete