Skip to content
Snippets Groups Projects

Issue #3221375: Wrong language field labels after drupal_rebuild()

1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -347,6 +347,7 @@ public function getFieldDefinitions($entity_type_id, $bundle) {
}
else {
// Rebuild the definitions and put it into the cache.
$this->languageManager->setConfigOverrideLanguage($this->languageManager->getCurrentLanguage());
$bundle_field_definitions = $this->buildBundleFieldDefinitions($entity_type_id, $bundle, $base_field_definitions);
$this->cacheSet($cid, $bundle_field_definitions, Cache::PERMANENT, ['entity_types', 'entity_field_info']);
}
Loading