Skip to content

Commit

Permalink
Fix typo in bundle cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
guncha25 committed Nov 9, 2020
1 parent 5f3c1f5 commit fc711cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Codeception/Module/DrupalUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private function deleteUsersContent($uid) {
continue;
}
try {
/** @var EntityStorageInterface $storage */
/** @var EntityStorageInterface $storage */
$storage = \Drupal::entityTypeManager()->getStorage($cleanup_entity);
}
catch (\Exception $e) {
Expand All @@ -209,7 +209,7 @@ private function deleteUsersContent($uid) {
}
try {
$bundles = \Drupal::service('entity_type.bundle.info')->getBundleInfo($cleanup_entity);
foreach ($bundles as $bundle) {
foreach ($bundles as $bundle => $bundle_data) {
$all_bundle_fields = \Drupal::service('entity_field.manager')->getFieldDefinitions($cleanup_entity, $bundle);
if (isset($all_bundle_fields['uid'])) {
$entities = $storage->loadByProperties(['uid' => $uid]);
Expand Down

0 comments on commit fc711cd

Please sign in to comment.