Verified Commit 74d673cd authored by Jess's avatar Jess
Browse files

Issue #3126127 by stefanos.petrakis, andypost, xjm, pooja saraah, Kristen Pol:...

Issue #3126127 by stefanos.petrakis, andypost, xjm, pooja saraah, Kristen Pol: Fix LanguageNegotiationMethodInterface::getLangcode() result docblock

(cherry picked from commit 6c8431c0)
parent 78cf3677
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -44,8 +44,15 @@ public function setCurrentUser(AccountInterface $current_user);
   *   (optional) The current request. Defaults to NULL if it has not been
   *   initialized yet.
   *
   * @return string
   *   A valid language code or FALSE if the negotiation was unsuccessful.
   * @return string|null|false
   *   A valid language code if the negotiation was successful and either NULL
   *    or FALSE otherwise.
   *
   * @todo Determine whether string|false or string|null should be the
   *   normalized result across all implementations and update the @return and
   *   its comment accordingly.
   *
   * @see https://www.drupal.org/node/3329952
   */
  public function getLangcode(Request $request = NULL);