Skip to content
Snippets Groups Projects

Issue #2698425: Do not reimport existing entities

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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.

  • Pravin Gaikwad added 17 commits

    added 17 commits

    Compare with previous version

  • Matt Poole
    • Looks like in the latest alpha3 version of the module, this file no longer exists. I think the changes in it can be safely removed since the command is defined in DefaultCommands.php.

    • Please register or sign in to reply
  • sorlov added 2 commits

    added 2 commits

    • b85c0192 - 1 commit from branch project:2.0.x
    • f2dd03f7 - Merge branch default_content:2.0.x into 2.0.x

    Compare with previous version

  • Please register or sign in to reply
    Loading