LanguageInterface::TYPE_URL definition is missing name and description

Created on 13 April 2022, over 2 years ago
Updated 24 February 2023, over 1 year ago

Problem/Motivation

When we update language types and make LanguageInterface::TYPE_URL configurable we get an error in Language Drupal\language\Plugin\Derivative\LanguageBlock::getDerivativeDefinitions "Undefined index: name". It happens, because LanguageInterface::TYPE_URL is missing name and description in Drupal\Core\Language\LanguageManager::getDefinedLanguageTypesInfo

Steps to reproduce

    $negatiator = \Drupal::service('language_negotiator');
    $negatiator->updateConfiguration([
      'language_interface' => TRUE,
      'language_content' => TRUE,
      'language_url' => FALSE,
    ]);

And then try to add language switcher

Proposed resolution

Add info like we do for other language types

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
Language systemΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡§πŸ‡ͺBelgium LOBsTerr

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024