From 40090dcfc95604720cb873f51ab431657ee1b8b3 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Fri, 19 Jan 2024 19:59:53 -0800 Subject: [PATCH] Added missing use and fixed Term entity. --- src/Seed.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Seed.php b/src/Seed.php index 93f5c957..92eecc91 100644 --- a/src/Seed.php +++ b/src/Seed.php @@ -6,6 +6,7 @@ use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Url; use Drupal\node\Entity\Node; +use Drupal\taxonomy\Entity\Term; use Drupal\quant\Event\QuantEvent; use Drupal\quant\Event\QuantRedirectEvent; use GuzzleHttp\Exception\ConnectException; @@ -155,7 +156,7 @@ public static function getRedirectLocationsFromRedirect($redirect) { $node = Node::load($matches[1]); } elseif (preg_match('/taxonomy\/term\/(\d+)/', $path, $matches)) { - $term = Taxonomy::load($matches[1]); + $term = Term::load($matches[1]); } // Create multilingual redirects.