Issue #2698425: Do not reimport existing entities
2 open threads
2 open threads
Issue #2698425 by kalpaitch, das-peter, jts86, andreyks, andypost, timmillwood, Karsa, robert-os, RumyanaRuseva, lammensj, e0ipso, morsok, r.nabiullin, Yaron Tal, plopesc, jamedina97, diegodalr3, robpowell, saramato, larowlan, eelkeblok, Manuel Garcia, vijaycs85, keesje, yannisc, chr.fritsch, ao2, youfei.sun, agentrickard, neclimdul, SocialNicheGuru, getu-lar: Do not reimport existing entities
Merge request reports
Activity
178 178 $values[$entity_type->getKey('langcode')] = $data['_meta']['default_langcode']; 179 179 } 180 180 181 // Load the entity by UUID and check if it exists. 181 182 /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */ 182 $entity = $this->entityTypeManager->getStorage($entity_type->id())->create($values); 183 $entity = $this->entityTypeManager->getStorage($entity_type->id())->loadByProperties(['uuid' => $values['uuid']]); 184 $entity = reset($entity); 185 $exists = !empty($entity); This has been superseded by !14 and can be closed.
added 17 commits
-
83fe76a5...a357ea69 - 16 commits from branch
project:2.0.x
- 25691278 - Issue #2698425 by kalpaitch, das-peter, jts86, andreyks, andypost,...
-
83fe76a5...a357ea69 - 16 commits from branch
Please register or sign in to reply