Commit a9d1b7d3 authored by Frank Nägler's avatar Frank Nägler Committed by Anja Leichsenring
Browse files

[TASK] Deprecate Clipboard->confirmMsg()

Resolves: #73744
Releases: master
Change-Id: I3780404c4362d1de84981eaee77298cdc1c3e399
Reviewed-on: https://review.typo3.org/46959

Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Tested-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent e3e3916e
......@@ -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) . ');';
......
=======================================================
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.
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