A TYPO3 plugin to display a list of languages to select from. Clicking on a language links to the corresponding version of the page.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

defined('TYPO3_MODE') or die();
// Configuring the language menu plugin
// The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
// A unique name of the plugin in UpperCamelCase
// An array holding the controller-action-combinations that are accessible
// The first controller and its first action will be the default
'Menu' => 'index,redirect'
// An array of non-cachable controller-action-combinations (they must already be enabled)
// Register icon
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
['source' => 'EXT:sr_language_menu/Resources/Public/Images/language.svg']
// Include page TS configuration for new element wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sr_language_menu/Configuration/PageTS/modWizards.typoscript">');