Skip to content

Commit

Permalink
[TASK] Add field flag to LanguageMenuProcessor
Browse files Browse the repository at this point in the history
This patch adds the missing field `flag` from the site configuration to
the LanguageMenuProcessor. The field could be used now to show the flag
icon in a language menu out of the box and without workarounds.

Resolves: #84926
Releases: master, 10.4
Change-Id: Ie27bed551a96cae8c6b20913105ff95db7f61942
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65814
Tested-by: Simon Gilli <typo3@gilbertsoft.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Simon Gilli <typo3@gilbertsoft.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
  • Loading branch information
gilbertsoft authored and georgringer committed Sep 22, 2020
1 parent e77b87a commit 46d72c8
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -202,6 +202,17 @@ class LanguageMenuProcessor implements DataProcessorInterface
'wrap' => ',"direction":|'
]
],
'25' => 'USER',
'25.' => [
'userFunc' => 'TYPO3\CMS\Frontend\DataProcessing\LanguageMenuProcessor->getFieldAsJson',
'language.' => [
'data' => 'register:languageId'
],
'field' => 'flag',
'stdWrap.' => [
'wrap' => ',"flag":|'
]
],
'90' => 'TEXT',
'90.' => [
'value' => self::LINK_PLACEHOLDER,
Expand Down

0 comments on commit 46d72c8

Please sign in to comment.