-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add event PluginPreviewSummaryEvent
Deprecate the hook `$GLOBALS['TYPO3_CONF_VARS']['EXT']['news'][\GeorgRinger\News\Hooks\PluginPreviewRenderer::class]['extensionSummary']` and provide an alternative event Resolves: #2569
- Loading branch information
1 parent
dfdd02b
commit 362da13
Showing
3 changed files
with
50 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the "news" Extension for TYPO3 CMS. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace GeorgRinger\News\Event; | ||
|
||
use GeorgRinger\News\Controller\CategoryController; | ||
use GeorgRinger\News\Hooks\PluginPreviewRenderer; | ||
use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem; | ||
use TYPO3\CMS\Extbase\Mvc\Request; | ||
|
||
final class PluginPreviewRendererEvent | ||
{ | ||
|
||
protected GridColumnItem $item; | ||
protected PluginPreviewRenderer $pluginPreviewRenderer; | ||
|
||
public function __construct(GridColumnItem $item, PluginPreviewRenderer $pluginPreviewRenderer) | ||
{ | ||
$this->item = $item; | ||
$this->pluginPreviewRenderer = $pluginPreviewRenderer; | ||
} | ||
|
||
public function getItem(): GridColumnItem | ||
{ | ||
return $this->item; | ||
} | ||
|
||
public function getPluginPreviewRenderer(): PluginPreviewRenderer | ||
{ | ||
return $this->pluginPreviewRenderer; | ||
} | ||
|
||
} |
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