Warning: Undefined array key "name" in Drupal\language\Plugin\Derivative\LanguageBlock->getDerivativeDefinitions() (line 27 of /var/core/drupal/www/core/modules/language/src/Plugin/Derivative/LanguageBlock.php)

Created on 22 November 2024, 30 days ago

Problem/Motivation

When I do a cache rebuild I get an error called:
Warning: Undefined array key "name" in Drupal\language\Plugin\Derivative\LanguageBlock->getDerivativeDefinitions() (line 27 of /var/core/drupal/www/core/modules/language/src/Plugin/Derivative/LanguageBlock.php).

Proposed resolution

Provide a fix for the following code line:
$this->derivatives[$type]['admin_label'] = $this->t('Language switcher (@type)', ['@type' => $info[$type]['name']]);

๐Ÿ› Bug report
Status

Needs work

Version

10.3 โœจ

Component

language system

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine v.dovhaliuk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024