Skip to content

Insert flaggingΒΆ

Available since: 1.0.0

Provided tokens

Token Description
[flagging] The flagging entity.
[flag] The flag entity.
[entity] The flagged entity
[event] The event.
[event:flag] The flag entity.
[event:flagging] The flagging entity.
[event:entity] The flagged entity.
[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.

Fires when a flagging entity is inserted into the database. This is triggered via Drupal's entity hook system and runs alongside (but independently from) the Flag event.

Tokens [flagging], [flag], and [entity] provide access to the flagging record, the flag configuration, and the flagged entity.