Commit b4b78745 authored by mxh's avatar mxh
Browse files

Issue #3325769 by mxh: Support translatability of content

parent 406c815d
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -357,15 +357,8 @@ class ParametersUiController extends ControllerBase {
   *   The collection, or NULL if not found.
   */
  protected function loadCollection(string $id): ?ParametersCollectionInterface {
    /** @var \Drupal\parameters\Entity\ParametersCollectionInterface $collection */
    if ($collection = $this->collectionStorage->load($id)) {
      if ($collection->language()->getId() !== $this->languageManager()->getCurrentLanguage()->getId()) {
    // Currently the Parameters UI does not support translations.
        $collection = $this->collectionStorage->loadOverrideFree($id);
      }
      return $collection;
    }
    return NULL;
    return $this->collectionStorage->loadOverrideFree($id);;
  }

}