Commit 6cdcfad8 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Remove printClipboard from internal Clipboard

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's avatarcore-ci <typo3@b13.com>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 070ab15e
......@@ -27,7 +27,6 @@ use TYPO3\CMS\Core\Database\Query\Restriction\WorkspaceRestriction;
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;
......@@ -233,18 +232,6 @@ class Clipboard
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();
......
Supports Markdown
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