Commit e11d0359 authored by Loparev's avatar Loparev
Browse files

Fixed issue with config translation

parent c8a017c2
......@@ -115,7 +115,12 @@ class LockFieldsManager {
* @return array
*/
public function getLockedFieldsByContentEntityData($entity_type, $entity_id, $lang_code, array $default = []) {
$entity = $this->entityTypeManager->getStorage($entity_type)->load($entity_id);
try {
$entity = $this->entityTypeManager->getStorage($entity_type)->load($entity_id);
}
catch (\Exception $e) {
return [];
}
if (empty($entity)) {
return [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment