Skip to content

Commit

Permalink
[TASK] Remove printClipboard from internal Clipboard
Browse files Browse the repository at this point in the history
The clipboard panel was refactored to a web component
in #95268. This also made the printClipboard() method in
the internal Clipboard class unused. Due to backwards
compatibility for some extensions, the method was kept
for the LTS version.

This patch now removed the method.

Resolves: #96167
Related: #95268
Releases: main
Change-Id: Ibee86144fb028a3e8bbaa7664f01af32be3e8973
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72410
Tested-by: core-ci <typo3@b13.com>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
o-ba committed Nov 30, 2021
1 parent 070ab15 commit 6cdcfad
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions typo3/sysext/backend/Classes/Clipboard/Clipboard.php
Expand Up @@ -27,7 +27,6 @@
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException;
use TYPO3\CMS\Core\Resource\File;
use TYPO3\CMS\Core\Resource\Folder;
Expand Down Expand Up @@ -233,18 +232,6 @@ public function cleanUpCBC(array $CBarr, string $table, bool $removeDeselected =
return $CBarr;
}

/**
* @deprecated Backwards compatibility for some extensions. Will be removed in v12.
*/
public function printClipboard(string $table = ''): string
{
$attributes = [
'table' => $table,
];
GeneralUtility::makeInstance(PageRenderer::class)->loadRequireJsModule('TYPO3/CMS/Backend/ClipboardPanel');
return '<typo3-backend-clipboard-panel ' . GeneralUtility::implodeAttributes($attributes, true) . '></typo3-backend-clipboard-panel>';
}

public function getClipboardData(string $table = ''): array
{
$lang = $this->getLanguageService();
Expand Down

0 comments on commit 6cdcfad

Please sign in to comment.