.. include:: /Includes.rst.txt .. _SiteLanguageProcessor: ===================== SiteLanguageProcessor ===================== .. versionadded:: 12.0 The :php:`SiteLanguageProcessor` fetches language-related data from the :ref:`site configuration`. .. _SiteLanguageProcessor-options: Options ======= .. _SiteLanguageProcessor-as: as -- .. confval:: as :name: SiteLanguageProcessor-as :Required: false :type: :ref:`data-type-string` :Default: "site" The variable name to be used in the Fluid template. .. _SiteLanguageProcessor-example: Example: Output some data from the site language configuration ============================================================== Please see also :ref:`dataProcessing-about-examples`. TypoScript ---------- Using the :php:`SiteLanguageProcessor` the following scenario is possible: .. include:: /CodeSnippets/DataProcessing/TypoScript/SiteLanguageProcessor.rst.txt .. versionadded:: 12.1 One can use the alias :typoscript:`site-language` instead of the fully-qualified class name :php:`\TYPO3\CMS\Frontend\DataProcessing\SiteLanguageProcessor`. The Fluid template ------------------ In the Fluid template the properties of the site language configuration can be accessed: .. include:: /CodeSnippets/DataProcessing/Template/DataProcSiteLanguage.rst.txt Output ------ The array now contains the information from the site language configuration: .. figure:: /Images/ManualScreenshots/SiteLanguageProcessor.png :class: with-shadow