Skip to content

Commit

Permalink
add ConfigTree to the example
Browse files Browse the repository at this point in the history
  • Loading branch information
franzholz authored and github-actions[bot] committed Nov 2, 2024
1 parent ab37435 commit af378f5
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ written to the cache, and *not* when a page can be successfully retrieved from
the cache, which is typically the case in "page is fully cached" scenarios.

This incoming :php:`$configTree` has already been merged with the determined
PAGE :typoscript:`page.config` TypoScript of the requested "type" /
PAGE :typoscript:`page.config` TypoScript of the requested :typoscript:`type` /
:typoscript:`typeNum` and the global TypoScript setup :typoscript:`config`.

The result of this event is available as a
:ref:`request attribute <typo3-request-attribute-frontend-typoscript>`:

.. code-block:: php
$request->getAttribute('frontend.typoscript')->getConfigArray()
$configArray = $request->getAttribute('frontend.typoscript')->getConfigArray();
$configTree = $request->getAttribute('frontend.typoscript')->getConfigTree();
.. caution::
Registered listener can *set* a modified setup config
Registered listeners can *set* a modified setup config
:abbr:`AST (Abstract Syntax Tree)`. Note the TypoScript AST structure is
still marked **internal** within TYPO3 v13 and may change later, using the
event to **write** different :typoscript:`config` data is thus still a bit
Expand Down

0 comments on commit af378f5

Please sign in to comment.