From d85cac96ab8f9ef15dc161618d6703fc3812ebfc Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:10:26 +0200 Subject: [PATCH] [TASK] Update codesnippets (#4819) Releases: main --- .../_Sets/_site-package/_setup.rst.txt | 1 + .../CodeSnippets/Extbase/Api/Repository.rst.txt | 8 ++++++++ .../FrontendPlugins/TypoScriptPluginRss.rst.txt | 14 ++++++++++++-- .../Backend/PreviewRendererInterface.rst.txt | 4 ++-- .../CodeSnippets/Manual/Core/SiteFinder.rst.txt | 2 ++ .../CodeSnippets/Manual/Entity/Site.rst.txt | 6 ++++++ .../Manual/Entity/SiteSettings.rst.txt | 11 +++++++---- 7 files changed, 38 insertions(+), 8 deletions(-) diff --git a/Documentation/ApiOverview/SiteHandling/_Sets/_site-package/_setup.rst.txt b/Documentation/ApiOverview/SiteHandling/_Sets/_site-package/_setup.rst.txt index f3a2e69287..b3ac1908fa 100644 --- a/Documentation/ApiOverview/SiteHandling/_Sets/_site-package/_setup.rst.txt +++ b/Documentation/ApiOverview/SiteHandling/_Sets/_site-package/_setup.rst.txt @@ -5,3 +5,4 @@ :caption: EXT:site_package/Configuration/Sets/SitePackage/setup.typoscript @import 'EXT:site_package/Configuration/TypoScript/Setup/*.typoscript' + @import 'EXT:site_package/Configuration/TypoScript/Setup/Navigation/*.typoscript' diff --git a/Documentation/CodeSnippets/Extbase/Api/Repository.rst.txt b/Documentation/CodeSnippets/Extbase/Api/Repository.rst.txt index ab58bc2863..c3a7ed6fae 100644 --- a/Documentation/CodeSnippets/Extbase/Api/Repository.rst.txt +++ b/Documentation/CodeSnippets/Extbase/Api/Repository.rst.txt @@ -9,6 +9,14 @@ :param $persistenceManager: the persistenceManager + .. php:method:: injectEventDispatcher(\Psr\EventDispatcher\EventDispatcherInterface $eventDispatcher) + + :param $eventDispatcher: the eventDispatcher + + .. php:method:: injectFeatures(\TYPO3\CMS\Core\Configuration\Features $features) + + :param $features: the features + .. php:method:: add(?object $object) Adds an object to this repository diff --git a/Documentation/CodeSnippets/Extbase/FrontendPlugins/TypoScriptPluginRss.rst.txt b/Documentation/CodeSnippets/Extbase/FrontendPlugins/TypoScriptPluginRss.rst.txt index da24cadaf1..f0b9118a88 100644 --- a/Documentation/CodeSnippets/Extbase/FrontendPlugins/TypoScriptPluginRss.rst.txt +++ b/Documentation/CodeSnippets/Extbase/FrontendPlugins/TypoScriptPluginRss.rst.txt @@ -4,11 +4,21 @@ .. code-block:: typoscript :caption: EXT:blog_example/Configuration/Sets/RssFeed/setup.typoscript + plugin.tx_blogexample { + settings { + rss { + channel { + typeNum = {$blogExampleRss.page_type} + title = {$blogExampleRss.title} + } + } + } + } # RSS rendering tx_blogexample_rss = PAGE tx_blogexample_rss { - typeNum = {$plugin.tx_blogexample.settings.rssPageType} - 10 < tt_content.list.20.blogexample_postlistrss + typeNum = {$blogExampleRss.page_type} + 10 < tt_content.blogexample_postlistrss config { disableAllHeaderCode = 1 diff --git a/Documentation/CodeSnippets/Manual/Backend/PreviewRendererInterface.rst.txt b/Documentation/CodeSnippets/Manual/Backend/PreviewRendererInterface.rst.txt index b6e4412ff4..51ab450e60 100644 --- a/Documentation/CodeSnippets/Manual/Backend/PreviewRendererInterface.rst.txt +++ b/Documentation/CodeSnippets/Manual/Backend/PreviewRendererInterface.rst.txt @@ -23,7 +23,7 @@ :returns: `string` Dedicated method for rendering preview header HTML for - the page module only. Receives the the GridColumnItem + the page module only. Receives the GridColumnItem that contains the record for which a preview header should be rendered and returned. @@ -33,7 +33,7 @@ :returns: `string` Dedicated method for rendering preview body HTML for - the page module only. Receives the the GridColumnItem + the page module only. Receives the GridColumnItem that contains the record for which a preview should be rendered and returned. diff --git a/Documentation/CodeSnippets/Manual/Core/SiteFinder.rst.txt b/Documentation/CodeSnippets/Manual/Core/SiteFinder.rst.txt index 8c1b75ea8d..4351cac474 100644 --- a/Documentation/CodeSnippets/Manual/Core/SiteFinder.rst.txt +++ b/Documentation/CodeSnippets/Manual/Core/SiteFinder.rst.txt @@ -27,3 +27,5 @@ :param $pageId: the pageId :param $rootLine: the rootLine, default: NULL :param $mountPointParameter: the mountPointParameter, default: NULL + + .. php:method:: siteConfigurationChanged() diff --git a/Documentation/CodeSnippets/Manual/Entity/Site.rst.txt b/Documentation/CodeSnippets/Manual/Entity/Site.rst.txt index d814a6390c..0de88cdb31 100644 --- a/Documentation/CodeSnippets/Manual/Entity/Site.rst.txt +++ b/Documentation/CodeSnippets/Manual/Entity/Site.rst.txt @@ -5,6 +5,9 @@ Entity representing a single site with available languages + .. php:attr:: invalidSets + :public: + .. php:method:: getIdentifier() :returns: `string` @@ -65,6 +68,9 @@ Returns the whole configuration for this site + .. php:method:: getRawConfiguration() + :returns: `array` + .. php:method:: getSettings() :returns: `\TYPO3\CMS\Core\Site\Entity\SiteSettings` diff --git a/Documentation/CodeSnippets/Manual/Entity/SiteSettings.rst.txt b/Documentation/CodeSnippets/Manual/Entity/SiteSettings.rst.txt index 365a7d62d8..bdd195de4f 100644 --- a/Documentation/CodeSnippets/Manual/Entity/SiteSettings.rst.txt +++ b/Documentation/CodeSnippets/Manual/Entity/SiteSettings.rst.txt @@ -24,16 +24,19 @@ .. php:method:: getAll() :returns: `array` + .. php:method:: getMap() + :returns: `array` + .. php:method:: getAllFlat() :returns: `array` .. php:method:: jsonSerialize() :returns: `?mixed` + .. php:method:: getIdentifiers() + :returns: `array` + .. php:method:: __set_state(array $state) - :returns: `self` + :returns: `static` :param $state: the state - - .. php:method:: getIdentifiers() - :returns: `array`