Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

ECA Flag

Security covered Under active development 245 sites

Part of the ECA ecosystem · 51 projects

This module integrates the ECA framework with the Flag module to trigger actions based on flagging and unflagging events. It provides events that fire when an entity is flagged or unflagged, making relevant entities and flagging data available as tokens. Additionally, it offers a condition to check if an entity is flagged and an action to retrieve flagging entities.

Integrates ECA with Flag.

For now, as the Flag module doesn't have a stable release yet, you need to apply 2 patches to the flag module when starting to use this:

Features

  • Events
    • You can either react on Insert flagging entity or Flag events. Both will operate similarly. The same for either Delete flagging entity or Unflag events.
    • If either of those events gets triggered, ECA puts several things onto the token stack:
      • flag the flag entity
      • flagging the flagging entity
      • entity the flagged or unflagged entity

      Note: if a flagging gets added or if the unflagging happens on exactly on entity, then you get those items on the token stack. However, unflagging can be triggered for many entities at once, then you get a list on the token system under the name flaggings where each item in the list contains the tokens listed above

  • Conditions
    • There is 1 condition from eca_flag which asserts whether a given entity is flagged or not
    • All other conditions can be achieved with the Compare two scalar values condition by using tokens from the flag entities
  • Actions
    • There is 1 action to get one or many flagging entities for a given entity and stored as an entity or a list of entities onto the token stack
    • Actions provided by the Flag module to flag or unflag entities can also be used in ECA models
Drupal 10–11

Ask your assistant about ECA Flag

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
15
Tracked since
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 5
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-alpha2 Pre-release 10–11 PHP >=8.1 May 16, 2024
2.0.0-alpha1 Pre-release 10–11 PHP >=8.1 May 5, 2024
2.0.x-dev Dev 10–11 PHP >=8.1 Aug 4, 2023
1.0.0 Stable 9–10 PHP >=7.4 Jul 13, 2023
1.0.0-beta1 Pre-release 9–10 PHP >=7.4 Jan 30, 2023