File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ private function deleteUsersContent($uid) {
200200 continue ;
201201 }
202202 try {
203- /** @var EntityStorageInterface $storage */
203+ /** @var EntityStorageInterface $storage */
204204 $ storage = \Drupal::entityTypeManager ()->getStorage ($ cleanup_entity );
205205 }
206206 catch (\Exception $ e ) {
@@ -209,7 +209,7 @@ private function deleteUsersContent($uid) {
209209 }
210210 try {
211211 $ bundles = \Drupal::service ('entity_type.bundle.info ' )->getBundleInfo ($ cleanup_entity );
212- foreach ($ bundles as $ bundle ) {
212+ foreach ($ bundles as $ bundle => $ bundle_data ) {
213213 $ all_bundle_fields = \Drupal::service ('entity_field.manager ' )->getFieldDefinitions ($ cleanup_entity , $ bundle );
214214 if (isset ($ all_bundle_fields ['uid ' ])) {
215215 $ entities = $ storage ->loadByProperties (['uid ' => $ uid ]);
You can’t perform that action at this time.
0 commit comments