Filter out empty values from language fallback chain

Created on 6 June 2023, about 2 years ago
Updated 7 July 2023, almost 2 years ago

Problem/Motivation

Language fallback chain contains NULL values.

$context = [
  'langcode' => 'en-mx',
  'operation' => 'path_alias',
];
$chain = $this->languageManager->getFallbackCandidates($context);

Steps to reproduce

  1. Add a fallback candidate for a language from language entity page
  2. Get fallbacks candidates of the language set in step 1 programmatically

Prosed solution

Filter out empty values from fallback chain

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

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

Comments & Activities

Production build 0.71.5 2024