Skip to content

Commit

Permalink
[TASK] Set feature behind a flag
Browse files Browse the repository at this point in the history
Resolves #678
  • Loading branch information
twoldanski committed Nov 17, 2023
1 parent f57faec commit fabea31
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Configuration/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@
'event.listener',
['identifier' => 'headless/AfterLinkIsGenerated']
);
$services->set(AfterCacheableContentIsGeneratedListener::class)->tag(
'event.listener',
['identifier' => 'headless/AfterCacheableContentIsGenerated']
);

$features = GeneralUtility::makeInstance(Features::class);

if ($features->isFeatureEnabled('headless.pageTitleProviders')) {
$services->set(AfterCacheableContentIsGeneratedListener::class)->tag(
'event.listener',
['identifier' => 'headless/AfterCacheableContentIsGenerated']
);
}

if ($feloginInstalled) {
$services->set(LoginConfirmedEventListener::class)->tag(
'event.listener',
Expand Down
24 changes: 24 additions & 0 deletions Documentation/Configuration/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ To enable headless support for `EXT:workspaces` please also add to you site(s) c
headless: true
**headless.pageTitleProvider**

Enable support for PageTitle API

.. code-block:: php
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['headless.pageTitleProvider'] = true;
**Availability of feature toggles by version**

.. t3-field-list-table::
Expand All @@ -132,42 +141,57 @@ To enable headless support for `EXT:workspaces` please also add to you site(s) c
- :Header1: Flag
:Header2: 2.x
:Header3: 3.x
:Header3: 4.x

- :Header1: FrontendBaseUrlInPagePreview
:Header2: available
:Header3: removed
:Header4: removed

- :Header1: headless.frontendUrls
:Header2: >= 2.5
:Header3: available
:Header4: removed

- :Header1: headless.storageProxy
:Header2: >= 2.4
:Header3: available
:Header4: available

- :Header1: headless.redirectMiddlewares
:Header2: >= 2.5
:Header3: available
:Header4: available

- :Header1: headless.nextMajor
:Header2: >= 2.2
:Header3: currently not used
:Header4: currently not used

- :Header1: headless.elementBodyResponse
:Header2: >= 2.6
:Header3: available
:Header4: available

- :Header1: headless.simplifiedLinkTarget
:Header2: >= 2.6
:Header3: removed
:Header4: not available

- :Header1: headless.jsonViewModule
:Header2: not available
:Header3: >= 3.0
:Header4: >= 3.0

- :Header1: headless.workspaces
:Header2: not available
:Header3: >= 3.1
:Header4: >= 3.1

- :Header1: headless.pageTitleProvider
:Header2: not available
:Header3: not available
:Header4: >= 4.2.3

.. _configuration-ext-form:

Expand Down

0 comments on commit fabea31

Please sign in to comment.