Skip to content
Snippets Groups Projects

Issue #3282017: Support translation entities

Files
4
+ 2
1
@@ -2,6 +2,7 @@
namespace Drupal\term_reference_change;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Entity\EntityFieldManagerInterface;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
@@ -104,7 +105,7 @@ class ReferenceFinder implements ReferenceFinderInterface {
foreach ($bundle as $fieldName) {
$entities = $this->entityTypeManager->getStorage($entityType)
->loadByProperties([$fieldName => $term->id()]);
$referencingEntities = array_merge($referencingEntities, $entities);
$referencingEntities = NestedArray::mergeDeepArray([$referencingEntities, $entities], TRUE);
}
}
Loading