Deprecation: #72859 - Deprecate methods of DocumentTemplate¶
See forge#72859
Description¶
The following methods within DocumentTemplate
have been marked as deprecated:
viewPageIcon()
getHeader()
getResourceHeader()
header()
icons()
t3Button()
wrapScriptTags()
loadJavascriptLib()
getContextMenuCode()
The following property within DocumentTemplate
has been marked as deprecated:
sectionFlag (is internal)
Impact¶
Calling any of the methods above will trigger a deprecation log entry.
Affected Installations¶
Any installation with a 3rd party extension calling one of the methods in its PHP code.
Migration¶
Instead of wrapScriptTags()
use GeneralUtility::wrapJS
.
Instead of getContextMenuCode()
use:
$this->getPageRenderer()->loadJquery();
$this->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Backend/ClickMenu');