LanguageSelectorBuilder
final readonly class \
Builds the language selector dropdown for backend modules (Page, List).
This centralizes the language selection UI logic to ensure consistent behavior across all modules. It handles both single-select (radio buttons) and multi-select (toggles/checkboxes) modes.
Internal
Table of Contents
Methods
- __construct() : mixed
- build() : ButtonInterface
Methods
__construct()
public
__construct(ComponentFactory $componentFactory, IconFactory $iconFactory) : mixed
Parameters
- $componentFactory : ComponentFactory
- $iconFactory : IconFactory
build()
public
build(PageContext $pageContext, LanguageSelectorMode $mode, Closure $urlBuilder[, bool $showToggleAll = true ]) : ButtonInterface
Parameters
- $pageContext : PageContext
- $mode : LanguageSelectorMode
- $urlBuilder : Closure
- $showToggleAll : bool = true