Skip to content
Snippets Groups Projects
Commit 69be9060 authored by Torben Hansen's avatar Torben Hansen Committed by Oliver Hader
Browse files

[TASK] Cleanup ModifyNewContentElementWizardItemsEvent


This change cleans up ModifyNewContentElementWizardItemsEvent
by using constructor property promotion.

Resolves: #100079
Releases: main
Signed-off-by: default avatarTorben Hansen <derhansen@gmail.com>
Change-Id: Ia2c524eabba82ab2cb25999ad3895ba91e6ae5dc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78020


Reviewed-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
Reviewed-by: default avatarChris Müller <typo3@krue.ml>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent 760a3bb0
Branches
Tags
No related merge requests found
......@@ -22,24 +22,13 @@ namespace TYPO3\CMS\Backend\Controller\Event;
*/
final class ModifyNewContentElementWizardItemsEvent
{
private array $wizardItems;
private array $pageInfo;
private int|null $colPos;
private int $sys_language;
private int $uid_pid;
public function __construct(
array $wizardItems,
array $pageInfo,
int|null $colPos,
int $sys_language,
int $uid_pid,
private array $wizardItems,
private readonly array $pageInfo,
private readonly int|null $colPos,
private readonly int $sys_language,
private readonly int $uid_pid,
) {
$this->wizardItems = $wizardItems;
$this->pageInfo = $pageInfo;
$this->colPos = $colPos;
$this->sys_language = $sys_language;
$this->uid_pid = $uid_pid;
}
public function getWizardItems(): array
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment