Loading modules/parameters_ui/src/Controller/ParametersUiController.php +2 −9 Original line number Diff line number Diff line Loading @@ -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);; } } Loading
modules/parameters_ui/src/Controller/ParametersUiController.php +2 −9 Original line number Diff line number Diff line Loading @@ -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);; } }