Add before step save hook per step key to simplify usage
[MAILPOET-4515]
This commit is contained in:
@@ -41,6 +41,9 @@ class MailPoetIntegration implements Integration {
|
||||
$registry->addAction($this->sendEmailAction);
|
||||
|
||||
// sync step args (subject, preheader, etc.) to email settings
|
||||
$registry->onBeforeWorkflowStepSave([$this->sendEmailAction, 'saveEmailSettings']);
|
||||
$registry->onBeforeWorkflowStepSave(
|
||||
[$this->sendEmailAction, 'saveEmailSettings'],
|
||||
$this->sendEmailAction->getKey()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user