Skip to content

Commit f584082

Browse files
authored
Merge branch 'main' into feature/records
2 parents 2303dd9 + 765b59d commit f584082

32 files changed

+289
-166
lines changed

Documentation/ApiOverview/Backend/BackendModules/_DocHeaderComponent.rst.txt

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,19 +150,59 @@
150150
151151
Disables this component to prevent rendering.
152152

153+
.. php:method:: setLanguageSelector(?\TYPO3\CMS\Backend\Template\Components\ComponentInterface $component)
154+
155+
:param $component: the component
156+
157+
.. php:method:: getLanguageSelector()
158+
:returns: `?\TYPO3\CMS\Backend\Template\Components\ComponentInterface`
159+
160+
.. php:method:: setShortcutContext(string $routeIdentifier, string $displayName, array $arguments = [])
161+
162+
Sets the context for the automatic shortcut button.
163+
164+
Controllers can use this method to provide shortcut information without
165+
manually creating and adding the shortcut button. The button will be
166+
automatically added to the button bar in the correct position.
167+
168+
Example:
169+
170+
$docHeader->setShortcutContext(
171+
routeIdentifier: 'site_configuration.edit',
172+
displayName: sprintf('Edit site: %s', $siteIdentifier),
173+
arguments: ['site' => $siteIdentifier]
174+
);
175+
176+
:param $routeIdentifier: The route identifier for the shortcut
177+
:param $displayName: The display name shown in the bookmark list
178+
:param $arguments: Optional arguments to include in the shortcut URL, default: []
179+
180+
.. php:method:: disableAutomaticReloadButton()
181+
182+
Disables the automatic reload button for this module.
183+
184+
Use this if your module needs custom reload behavior or should not
185+
have a reload button at all.
186+
187+
.. php:method:: disableAutomaticShortcutButton()
188+
189+
Disables the automatic shortcut button for this module.
190+
191+
Use this if your module should not have a shortcut button.
192+
153193
.. php:method:: docHeaderContent(?\Psr\Http\Message\ServerRequestInterface $request)
154194
:returns: `array`
155195

156196
Returns the complete document header content as an array for rendering.
157197

158-
This method aggregates all components (buttons, menus, breadcrumbs) into
198+
This method aggregates all components (buttons, breadcrumbs) into
159199
a structured array that can be consumed by the Fluid template rendering
160200
the backend module layout.
161201

162202
The returned array structure:
163203
- 'enabled': Whether the document header should be rendered
164204
- 'buttons': Array of button configurations from the button bar
165-
- 'menus': Array of menu configurations from the menu registry
166205
- 'breadcrumb': Breadcrumb trail data from the breadcrumb context
206+
- 'languageSelector': Language Selector
167207

168208
:param $request: the request

Documentation/ApiOverview/Backend/BackendModules/_ModuleTemplate.rst.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@
125125
.. php:method:: makeDocHeaderModuleMenu(array $additionalQueryParams = [])
126126
:returns: `self`
127127

128-
Generates a menu in the docheader to access third-level modules
128+
Generates a module actions dropdown in the docheader button bar.
129+
130+
Creates a dropdown button on the LEFT side (group 0) containing navigation to
131+
submodules or module actions. The button label shows the currently active module/action.
129132

130133
:param $additionalQueryParams: the additionalQueryParams, default: []
131134

Documentation/ApiOverview/Backend/_UriBuilder/_LinksAction.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{
2424
$pageUid = (int)($this->request->getQueryParams()['id'] ?? 0);
2525
$returnUrl = (string)$this->backendUriBuilder->buildUriFromRoute(
26-
'web_examples',
26+
'content_examples_links',
2727
['id' => $pageUid, 'action' => 'links'],
2828
);
2929

Documentation/ApiOverview/Fal/Administration/Storages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ File storages
77
=============
88

99
:ref:`File storages <fal-architecture-components-storage>` can be administered
10-
through the :guilabel:`Content > List` module. They have a few properties which
10+
through the :guilabel:`Content > Records` module. They have a few properties which
1111
deserve further explanation.
1212

1313
.. include:: /Images/AutomaticScreenshots/Fal/AdministrationFileStorageAccessTab.rst.txt

Documentation/ApiOverview/Logging/Processors/Index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ It is suggested to extend the abstract class
157157
:t3src:`core/Classes/Log/Processor/AbstractProcessor.php` which allows you use
158158
configuration options by adding the corresponding properties and setter methods.
159159

160+
.. rubric:: Example
161+
162+
.. literalinclude:: _MyProcessorWithOptions.php
163+
:caption: EXT:my_extension/Classes/Log/Processor/MyProcessor.php
164+
160165
Please keep in mind that TYPO3 will silently continue operating,
161166
in case a log processor is throwing an exception while executing
162167
the :php:`processLogRecord()` method.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace MyVendor\MyExtension\Log\Processor;
4+
5+
use TYPO3\CMS\Core\Log\LogRecord;
6+
7+
class MyProcessor extends \TYPO3\CMS\Core\Log\Processor\AbstractProcessor
8+
{
9+
protected bool $option = true;
10+
11+
public function setOption(bool $option): void
12+
{
13+
$this->option = $option;
14+
}
15+
16+
public function processLogRecord(LogRecord $logRecord): LogRecord
17+
{
18+
// add magic
19+
20+
return $logRecord;
21+
}
22+
}

Documentation/CodeSnippets/Events/Backend/ModifyDatabaseQueryForRecordListingEvent.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
.. php:class:: ModifyDatabaseQueryForRecordListingEvent
55
6-
Use this Event to alter the database query when loading content for a page (usually in the Records module)
6+
Use this Event to alter the database query when loading content for a page (usually in the "Records" module)
77
before it is executed.
88

99
.. php:method:: getQueryBuilder()

Documentation/CodeSnippets/Events/Form/AfterCurrentPageIsResolvedEvent.rst.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@
2828
:public:
2929

3030
The current request
31-

Documentation/CodeSnippets/Extbase/Controllers/BlogControllerNew.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Psr\Http\Message\ResponseInterface;
88
use T3docs\BlogExample\Domain\Model\Blog;
99
10-
class BlogController extends AbstractController
10+
class BlogController extends ActionController
1111
{
1212
/**
1313
* Displays a form for creating a new blog

Documentation/CodeSnippets/Extbase/Controllers/BlogControllerUpdate.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use T3docs\BlogExample\Domain\Model\Blog;
99
use T3docs\BlogExample\Exception\NoBlogAdminAccessException;
1010
11-
class BlogController extends AbstractController
11+
class BlogController extends ActionController
1212
{
1313
/**
1414
* Updates an existing blog

0 commit comments

Comments
 (0)