-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[!!!][TASK] Migrate plugins to content elements
All existing plugins have been migrated to content elements. The included update wizard must be executed in order to migrate existing plugins and permissions. Closes #1189
- Loading branch information
Showing
11 changed files
with
125 additions
and
65 deletions.
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
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
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
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,42 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Extension "sf_event_mgt" for TYPO3 CMS. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace DERHANSEN\SfEventMgt\Updates; | ||
|
||
use TYPO3\CMS\Install\Attribute\UpgradeWizard; | ||
use TYPO3\CMS\Install\Updates\AbstractListTypeToCTypeUpdate; | ||
|
||
#[UpgradeWizard('sfEventMgtPluginToContentElementUpdate')] | ||
class PluginToContentElementUpdater extends AbstractListTypeToCTypeUpdate | ||
{ | ||
protected function getListTypeToCTypeMapping(): array | ||
{ | ||
return [ | ||
'sfeventmgt_pieventlist' => 'sfeventmgt_pieventlist', | ||
'sfeventmgt_pieventdetail' => 'sfeventmgt_pieventdetail', | ||
'sfeventmgt_pieventregistration' => 'sfeventmgt_pieventregistration', | ||
'sfeventmgt_pieventsearch' => 'sfeventmgt_pieventsearch', | ||
'sfeventmgt_pieventcalendar' => 'sfeventmgt_pieventcalendar', | ||
'sfeventmgt_piuserreg' => 'sfeventmgt_piuserreg', | ||
'sfeventmgt_pipayment' => 'sfeventmgt_pipayment', | ||
]; | ||
} | ||
|
||
public function getTitle(): string | ||
{ | ||
return 'ext:sf_event_mgt: Migrate plugins to content elements'; | ||
} | ||
|
||
public function getDescription(): string | ||
{ | ||
return 'Migrates existing plugin records and backend user permissions used by ext:sf_event_mgt.'; | ||
} | ||
} |
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
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
Oops, something went wrong.