Skip to content
Snippets Groups Projects

Issue #2410579: Allows setting the current language programmatically.

Open Issue #2410579: Allows setting the current language programmatically.
3 unresolved threads
3 unresolved threads

Closes #2410579

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
108 108 return $this->getDefaultLanguage();
109 109 }
110 110
111 /**
112 * {@inheritdoc}
113 */
114 public function setCurrentLanguage(LanguageInterface $language, $type = LanguageInterface::TYPE_INTERFACE) {
  • 52 52
    53 /**
    54 * Sets the current language for the given type.
    55 *
    56 * @param \Drupal\Core\Language\LanguageInterface $language
    57 * The language to set as current language.
    58 * @param string $type
    59 * (optional) The language type; e.g., the interface or the content
    60 * language. Defaults to
    61 * \Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE.
    62 *
    63 * @return \Drupal\Core\Language\LanguageInterface
    64 * The current language object for the given type of language, before
    65 * setting the new current language.
    66 */
    67 public function setCurrentLanguage(LanguageInterface $language, $type = LanguageInterface::TYPE_INTERFACE);
  • 235 235 return $this->negotiatedLanguages[$type];
    236 236 }
    237 237
    238 /**
    239 * {@inheritdoc}
    240 */
    241 public function setCurrentLanguage(LanguageInterface $language, $type = LanguageInterface::TYPE_INTERFACE) {
  • sleitner added 1 commit

    added 1 commit

    • b1f7f817 - Issue #2410579 by Kobe Wright, sleitner: Allow to change the current language

    Compare with previous version

  • sleitner added 172 commits

    added 172 commits

    • b1f7f817...22a39eb4 - 169 commits from branch project:10.1.x
    • 237700a3 - Issue #2410579: Allows setting the current language programmatically.
    • c6d90894 - getCurrentLanguage() with the requested $type, not just LanguageInterface::TYPE_INTERFACE
    • c422a489 - Issue #2410579 by Kobe Wright, sleitner: Allow to change the current language

    Compare with previous version

  • sleitner added 16 commits

    added 16 commits

    • c422a489...7a61f4e9 - 13 commits from branch project:10.1.x
    • 1d95eee4 - Issue #2410579: Allows setting the current language programmatically.
    • 35c0966a - getCurrentLanguage() with the requested $type, not just LanguageInterface::TYPE_INTERFACE
    • f6a1bf4a - Issue #2410579 by Kobe Wright, sleitner: Allow to change the current language

    Compare with previous version

  • sleitner added 30 commits

    added 30 commits

    • f6a1bf4a...90596616 - 27 commits from branch project:10.1.x
    • 6e19bfb4 - Issue #2410579: Allows setting the current language programmatically.
    • 99907808 - getCurrentLanguage() with the requested $type, not just LanguageInterface::TYPE_INTERFACE
    • ee0c3df5 - Issue #2410579 by Kobe Wright, sleitner: Allow to change the current language

    Compare with previous version

  • sleitner added 1 commit

    added 1 commit

    • e3e67340 - As there is only one language in LanguageManager, it cannot be changed. This...

    Compare with previous version

  • sleitner added 10 commits

    added 10 commits

    • e3e67340...60c2916b - 6 commits from branch project:10.1.x
    • bb37cfcb - Issue #2410579: Allows setting the current language programmatically.
    • a80d701c - getCurrentLanguage() with the requested $type, not just LanguageInterface::TYPE_INTERFACE
    • e170721f - Issue #2410579 by Kobe Wright, sleitner: Allow to change the current language
    • 10ff93d0 - As there is only one language in LanguageManager, it cannot be changed. This...

    Compare with previous version

  • sleitner added 1 commit

    added 1 commit

    • 23c1f173 - Adds test testSetCurrentLanguage

    Compare with previous version

  • sleitner added 1 commit
  • sleitner added 1080 commits

    added 1080 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading