- Merge request !20Added country-path-language-url to URL language negotiators β (Open) created by alex.bukach
Calls to the core service `$language_negotiator->getNegotiationMethods(LanguageInterface::TYPE_URL)` do not return the `country-path-language-url` plugin provided by this module.
When the $type argument is provided as in the above call, LanguageNegotiator calls its `getEnabledNegotiators()` method,
which returns `return $this->configFactory->get('language.types')->get('negotiation.' . $type . '.enabled') ?: [];`
When inspecting my active configuration in `language.types.yml` for "negotiation.language_url" I only see:
language_url:
enabled:
language-url: 0
language-url-fallback: 1
The module is enabled, and is listed under both the "negotiation.language_content" and "negotiation.language_interface" enabled types.
It's not clear to me whether this is an issue with the schema of this module, or something with how core is managing the language types config.
This issue was discovered while debugging a problem with the multilingual sitemap generation within the Simple XML Sitemap module, specifically the call to static method `SitemapGeneratorBase::isMultilingualSitemap()`
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.