ECA: Event - Condition - Action

Rules engine for Drupal 9 and later with an interface to integrate interactive modellers

ECA is a processor that gets triggered for every Drupal event. It validates these events against the models (event - condition - action), which are stored in config, and processes them. ECA leverages existing components of Drupal core, i.e. events and actions. It comes with its own plugin manager for conditions, which results in all 3 components (events, conditions, actions) to be plugins that can easily be extended by other modules.

Embedded components

In Drupal 7 we would generate Rules inside of the default hook, loosely coupled by a naming convention (e.g. mymodule_{key}). In Drupal 8 we will use RulesUiComponentProviderInterface to embed a component in a configuration entity. This guide assumes that you have already created a custom configuration entity.

Typed Data API Enhancements

Builds upon the core Typed Data API and expands it with further APIs and features.

The Typed Data API Enhancements module adds functionality to the core Drupal TypedData API without altering the operation of the existing core API. These new features are available for developers to use within modules that rely on manipulation of typed data. Specifically, the functionality in this module was originally part of Rules, but was split off because it can be of general use.

Set title value of new content with "set data"

This is a basic reaction rule example that sets a new Title value for any new content of type Article. An HTML formatted system message, using a Rules token, is also displayed.

Here is the rules.reaction.set_article_title.txt configuration for importing.

1) Adding new Rule.

Rules Essentials

Documentation placeholder

Documentation for the Rules Essentials module. A work in progress.

This documentation guide attempts to do three things:

Subscribe with RSS Subscribe to RSS - Rules