DEV Community

Cover image for What is ECA in Drupal And Why You Should Know It
Neharika Mohan
Neharika Mohan

Posted on • Edited on

What is ECA in Drupal And Why You Should Know It

If you've been building Drupal sites, you've probably written custom modules just to send an automated email or build a simple approval flow.
What if you didn't have to?
That's what ECA is for.

ECA = Events, Conditions, Actions
It's a Drupal module that lets you build automated workflows from the admin panel no custom PHP needed.
The mental model is simple:

When this happens → check this → do this

Real example:

  • Event: User submits a form
  • Condition: User role is "Student"
  • Action: Send a welcome email + assign them to a group

Zero code. Built visually in minutes.

Why Developers Love It

  • Visual interface — flowchart style, easy to debug and explain to clients
  • Covers most use cases — form submissions, entity changes, user login, scheduled triggers
  • Works with popular modules — Webform, Views, Token, Rules
  • Exportable — save workflows as config, reuse across projects

Quick Install

composer require drupal/eca drupal/bpmn_io
drush en eca eca_base eca_content eca_user eca_form eca_ui bpmn_io
drush cr
Enter fullscreen mode Exit fullscreen mode

Then go to Configuration → ECA and you'll see the visual workflow builder.

Bottom Line
ECA replaces hours of custom module development with a visual, maintainable workflow anyone on your team can understand.

Have a workflow you're currently solving with custom code? Drop it in the comments might be the next tutorial.

Top comments (0)