Skip to content

Commit ae55eef

Browse files
o-balolli42
authored andcommitted
[DOCS] Fix PHP code example in changelog
Resolves: #94342 Releases: master, 10.4 Change-Id: Ia3d10d9b934788228ceb7c6ec0d3e1a67474b9f5 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69436 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
1 parent 1ee27a9 commit ae55eef

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

typo3/sysext/core/Documentation/Changelog/10.2/Deprecation-89718-LegacyPageTSconfigParsingLowlevelAPI.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ Loading and parsing PageTSconfig on a low-level should be done via the new PHP c
4646

4747
Usages for fetching all available PageTS of a page/rootline in one large string:
4848

49-
:php:
50-
$loader = GeneralUtility::makeInstance(PageTsConfigLoader::class);
51-
$tsConfigString = $loader->load($rootLine);
49+
.. code-block:: php
5250
51+
$loader = GeneralUtility::makeInstance(PageTsConfigLoader::class);
52+
$tsConfigString = $loader->load($rootLine);
5353
54-
The string is parsed (and conditions are applied) with the Parser::
5554
56-
$parser = GeneralUtility::makeInstance(
55+
The string is parsed (and conditions are applied) with the Parser:
56+
57+
.. code-block:: php
58+
59+
$parser = GeneralUtility::makeInstance(
5760
PageTsConfigParser::class,
5861
$typoScriptParser,
5962
$hashCache

0 commit comments

Comments
 (0)