From a9d1b7d3083262375c90f6ac531871d1714dbed2 Mon Sep 17 00:00:00 2001 From: Frank Naegler <frank.naegler@typo3.org> Date: Mon, 29 Feb 2016 13:09:48 +0100 Subject: [PATCH] [TASK] Deprecate Clipboard->confirmMsg() Resolves: #73744 Releases: master Change-Id: I3780404c4362d1de84981eaee77298cdc1c3e399 Reviewed-on: https://review.typo3.org/46959 Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Jan Helke <typo3@helke.de> Tested-by: Jan Helke <typo3@helke.de> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> --- .../backend/Classes/Clipboard/Clipboard.php | 2 ++ ...on-73744-DeprecateClipboard-confirmMsg.rst | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 typo3/sysext/core/Documentation/Changelog/master/Deprecation-73744-DeprecateClipboard-confirmMsg.rst diff --git a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php index da285ad5bd45..f17549668d22 100644 --- a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php +++ b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php @@ -706,9 +706,11 @@ class Clipboard * @param array $clElements Array of selected elements * @param string $columnLabel Name of the content column * @return string JavaScript "confirm" message + * @deprecated since TYPO3 v8, will be removed in TYPO3 v9 */ public function confirmMsg($table, $rec, $type, $clElements, $columnLabel = '') { + GeneralUtility::logDeprecatedFunction(); $message = $this->confirmMsgText($table, $rec, $type, $clElements, $columnLabel); if (!empty($message)) { $message = 'confirm(' . GeneralUtility::quoteJSvalue($message) . ');'; diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-73744-DeprecateClipboard-confirmMsg.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-73744-DeprecateClipboard-confirmMsg.rst new file mode 100644 index 000000000000..8025b7ab79bd --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-73744-DeprecateClipboard-confirmMsg.rst @@ -0,0 +1,26 @@ +======================================================= +Deprecation: #73744 - Deprecate Clipboard->confirmMsg() +======================================================= + +Description +=========== + +Clipboard::confirmMsg has been marked as deprecated. + + +Impact +====== + +Using ``Clipboard::confirmMsg()`` will trigger a deprecation log entry. + + +Affected Installations +====================== + +Any TYPO3 instance using a third-party extension using the PHP method above. + + +Migration +========= + +Use ``Clipboard::confirmMsgText()`` to get the confirm message and make use of the Modal API. -- GitLab