[TASK] Deprecate Clipboard->confirmMsg() 59/46959/3
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 29 Feb 2016 12:09:48 +0000 (13:09 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 4 Mar 2016 12:36:37 +0000 (13:36 +0100)
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>
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-73744-DeprecateClipboard-confirmMsg.rst [new file with mode: 0644]

index da285ad..f175496 100644 (file)
@@ -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 (file)
index 0000000..8025b7a
--- /dev/null
@@ -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.