Closed (fixed)
Project:
Mautic ECA
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2025 at 09:03 UTC
Updated:
16 Jul 2025 at 11:14 UTC
Jump to comment: Most recent
The Mautic ECA Drupal module will implement Create, Read, Update, and Delete (CRUD) operations for Mautic contacts using the official mautic/api-library client. It will expose these operations as ECA actions in Drupal. The module will allow to select from a list of config entity to make the API connection using module mautic_api.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
abhisekmazumdarComment #4
abhisekmazumdarThis work is based on this related issue.
Comment #5
abhisekmazumdarComment #6
abhisekmazumdarI was not feeling happy with the structure. I made some adjustments to the overall structure to align it with the other actions.
A new commit: https://git.drupalcode.org/project/mautic_eca/-/merge_requests/1/diffs?c...
Comment #7
mallezieComment #8
abhisekmazumdarThank you for the feedback.
I have addressed all the inline comments, please review them.
I also moved the relevant helper API method to mautic_api: #3533406: Add helper method loadConnection & checkApiResponse
Comment #9
mallezieWe do not need the json field in every plugin, so removed that and made the needed changes.
Also removed the 2 helper functions, no need to block that on the new issue in mautic_api, that's a good improvement, but can be postponed to later.
There is still one thing missing here, that is the ListContact action, i'll push that tomorrow, if we have that one, then we can start with a setup like delete from mail, by combining that action.
Comment #10
mallezieAdded the mautic list action.
This can be used to find a contact via mail, store that output in a token, and then use that input (or part of it) as input token for a get or delete contact.
Comment #12
abhisekmazumdarThank you for the improvements. It's great to see how everything fits together like Lego pieces.