From 2abb5d01133f0421b4c2247000b8a61cf08c655a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <typo3@krue.ml> Date: Wed, 18 Jan 2023 18:22:55 +0100 Subject: [PATCH] [TASK] Fix typo in docblock of AfterRecordPublishedEvent Additionally, add descriptions to the available methods. Related: #99430 Resolves: #99619 Releases: main Change-Id: If4f7f8a90258727f1cb0044203fe5a41b3f78a3e Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77480 Tested-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Nikita Hovratov <nikita.h@live.de> Reviewed-by: Nikita Hovratov <nikita.h@live.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../Classes/Event/AfterRecordPublishedEvent.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/workspaces/Classes/Event/AfterRecordPublishedEvent.php b/typo3/sysext/workspaces/Classes/Event/AfterRecordPublishedEvent.php index 684b3a78ab54..d6b359da9e54 100644 --- a/typo3/sysext/workspaces/Classes/Event/AfterRecordPublishedEvent.php +++ b/typo3/sysext/workspaces/Classes/Event/AfterRecordPublishedEvent.php @@ -18,7 +18,7 @@ declare(strict_types=1); namespace TYPO3\CMS\Workspaces\Event; /** - * Event that is fired after a record has been published ina workspace. + * Event that is fired after a record has been published in a workspace. */ final class AfterRecordPublishedEvent { @@ -29,16 +29,25 @@ final class AfterRecordPublishedEvent ) { } + /** + * The table name of the record. + */ public function getTable(): string { return $this->table; } + /** + * The uid of the record + */ public function getRecordId(): int { return $this->recordId; } + /** + * The workspace the record has been published in. + */ public function getWorkspaceId(): int { return $this->workspaceId; -- GitLab