-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Adds Event before bodytext parsing
This event is executed before the body text for the individual newsletter is processed. The event can be used to change or reset the body text that is used for parsing. Relates to: https://projekte.in2code.de/issues/61356
- Loading branch information
1 parent
8ea5384
commit 3731b4a
Showing
3 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
namespace In2code\Luxletter\Events; | ||
|
||
use In2code\Luxletter\Domain\Model\Queue; | ||
|
||
final class BeforeBodytextIsParsedEvent | ||
{ | ||
protected Queue $queue; | ||
|
||
protected string $bodytext = ''; | ||
|
||
public function getQueue(): Queue | ||
{ | ||
return $this->queue; | ||
} | ||
|
||
public function setQueue(Queue $queue): void | ||
{ | ||
$this->queue = $queue; | ||
} | ||
|
||
public function getBodytext(): string | ||
{ | ||
return $this->bodytext; | ||
} | ||
|
||
public function setBodytext(string $bodytext): void | ||
{ | ||
$this->bodytext = $bodytext; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters