Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

ECA Flag

221 sites Security covered Drupal 10–11 ECA ecosystem
View on drupal.org

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

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
6
Tracked since
Oct 2024
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 5
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
2.0.5 Stable 10–11 Sep 5, 2025
2.0.4 Stable 10–11 Aug 16, 2025
2.0.3 Stable 10–11 Aug 15, 2025
2.0.2 Stable 10–11 Aug 15, 2025
2.1.0-rc1 Pre-release 11 Jun 25, 2025
2.0.1 Stable 10–11 Oct 15, 2024