Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Hello,
in core/modules/language/src/LanguageNegotiatorInterface.php, the docblock provides an example of a class extending Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl.
In this example, we're supposed to override GetLangcode, but at line 79 and 83, the given function's name is GetCurrentLanguage.
Steps to reproduce
Open file modules/language/src/LanguageNegotiatorInterface.php
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal-error_in_docblock_of_LanguageNegotitationInterface-3316136-2.patch | 864 bytes | julien.sibi |
Comments
Comment #2
julien.sibiComment #3
julien.sibiComment #4
julien.sibiComment #5
flocondetoilePatch looks fine and fix a typo error in the docblock on the available method in the LanguageNegotiationUrl Class extended.
Comment #7
catchCommitted/pushed to 10.1.x and cherry-picked back to 9.5.x, thanks!