[TASK] Add api tag to ElementBrowser::setRecordList() 37/28237/4
authorAlexander Stehlik <alexander.stehlik@googlemail.com>
Tue, 11 Mar 2014 06:09:41 +0000 (07:09 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 11 Mar 2014 17:02:17 +0000 (18:02 +0100)
This method was introduced in TYPO3 6.2 with the purpose to be used
by Extensions. Therefore the @deprecated tag is replaced with an
@api tag.

Resolves: #56742
Releases: 6.2
Change-Id: Ia48a8c6997c26318a6fea50af32cd73f1138bb2b
Reviewed-on: https://review.typo3.org/28237
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php

index e9ef294..3e29b4e 100644 (file)
@@ -2387,16 +2387,15 @@ class ElementBrowser {
        }
 
        /**
-        * Setter for the class that should be used by TBE_expandPage()
-        * to generate the record list.
+        * Setter for the class that should be used by TBE_expandPage() to generate the record list.
+        * This method is intended to be used by Extensions that implement their own browsing functionality.
         *
         * @param \TYPO3\CMS\Backend\RecordList\ElementBrowserRecordList $recordList
         * @throws \InvalidArgumentException
         * @return void
-        * @deprecated since 6.2 - will be removed two versions later without replacement
+        * @api
         */
        public function setRecordList($recordList) {
-               GeneralUtility::logDeprecatedFunction();
                if (!$recordList instanceof \TYPO3\CMS\Backend\RecordList\ElementBrowserRecordList) {
                        throw new \InvalidArgumentException('$recordList needs to be an instance of \\TYPO3\\CMS\\Backend\\RecordList\\ElementBrowserRecordList', 1370878522);
                }