TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,56 @@
.. include:: /Includes.rst.txt
.. _deprecation-72859:
===========================================================
Deprecation: #72859 - Deprecate methods of DocumentTemplate
===========================================================
See :issue:`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 :php:`wrapScriptTags()` use :php:`GeneralUtility::wrapJS`.
Instead of :php:`getContextMenuCode()` use:
.. code-block:: php
$this->getPageRenderer()->loadJquery();
$this->getPageRenderer()->loadRequireJsModule('TYPO3/CMS/Backend/ClickMenu');
.. index:: Backend, PHP-API