[FEATURE] Allow extended custom links in FormEngine and TypoLink
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / DefaultConfiguration.php
index 037c6a4..dba8254 100644 (file)
@@ -1000,6 +1000,15 @@ return [
         'versionNumberInFilename' => 'querystring',
         'contentRenderingTemplates' => [], // Array to define the TypoScript parts that define the main content rendering. Extensions like "css_styled_content" provide content rendering templates. Other extensions like "felogin" or "indexed search" extend these templates and their TypoScript parts are added directly after the content templates. See EXT:css_styled_content/ext_localconf.php and EXT:frontend/Classes/TypoScript/TemplateService.php
         'ContentObjects' => [], // Array to register ContentObject (cObjects) like TEXT or HMENU within ext_localconf.php, see EXT:frontend/ext_localconf.php
+        'typolinkBuilder' => [  // Matches the LinkService implementations for generating URL, link text via typolink
+            'page' => \TYPO3\CMS\Frontend\Typolink\PageLinkBuilder::class,
+            'file' => \TYPO3\CMS\Frontend\Typolink\FileOrFolderLinkBuilder::class,
+            'folder' => \TYPO3\CMS\Frontend\Typolink\FileOrFolderLinkBuilder::class,
+            'url' => \TYPO3\CMS\Frontend\Typolink\ExternalUrlLinkBuilder::class,
+            'email' => \TYPO3\CMS\Frontend\Typolink\EmailLinkBuilder::class,
+            'record' => \TYPO3\CMS\Frontend\Typolink\DatabaseRecordLinkBuilder::class,
+            'unknown' => \TYPO3\CMS\Frontend\Typolink\LegacyLinkBuilder::class,
+        ],
     ],
     'MAIL' => [ // Mail configurations to tune how \TYPO3\CMS\Core\Mail\ classes will send their mails.
         'transport' => 'mail',