Add before step save hook per step key to simplify usage

[MAILPOET-4515]
This commit is contained in:
Jan Jakes
2022-08-02 10:20:36 +02:00
committed by Veljko V
parent 24a63f6448
commit d1fddb85f7
5 changed files with 12 additions and 7 deletions

View File

@@ -119,10 +119,6 @@ class SendEmailAction implements Action {
}
public function saveEmailSettings(Step $step): void {
if ($step->getKey() !== $this->getKey()) {
return;
}
$args = $step->getArgs();
if (!isset($args['email_id'])) {
return;