Skip to content

Determining entity create access

Available since: 1.1.0

Provided tokens

Token Description
[event] The event.
[event:context] Contains a list of properties depending on the context of the event.
[event:entity_bundle] The bundle of the entity.
[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. This is only available if ECA is configured to always run under a specific account.
[account] The user account of the event.

Fields

For any successor of this event, the account that asks for access is available under the <strong>[account]</strong> token. Example: <strong>[account:uid]</strong> provides the user ID of the account.

Furthermore, following data of the event is available:<ul><li><strong>[event:operation]</strong> holds the requested operation, such as "view".</li></ul>

Restrict by entity type ID

Example: node, taxonomy_term, user

Restrict by entity bundle

Example: article, tags

Restrict by language code

Example: en